mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:44:58 +00:00
clear: Port to LibMain :^)
This commit is contained in:
parent
6e066bf1cd
commit
d86c84a700
2 changed files with 5 additions and 6 deletions
|
@ -4,15 +4,13 @@
|
|||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibCore/System.h>
|
||||
#include <LibMain/Main.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int main(int, char**)
|
||||
ErrorOr<int> serenity_main(Main::Arguments)
|
||||
{
|
||||
if (pledge("stdio", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
TRY(Core::System::pledge("stdio", nullptr));
|
||||
printf("\033[3J\033[H\033[2J");
|
||||
fflush(stdout);
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue