1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

Add a /bin/clear that prints the clear terminal escape sequence.

It doesn't work yet, but it will!
This commit is contained in:
Andreas Kling 2018-10-27 17:39:08 +02:00
parent 8f91a47aeb
commit cc7e3519a6
6 changed files with 25 additions and 8 deletions

8
Userland/clear.cpp Normal file
View file

@ -0,0 +1,8 @@
#include <LibC/stdio.h>
int main(int, char**)
{
printf("\033[3J\033[H\033[2J");
return 0;
}