Clear terminal command
This commit is contained in:
parent
16ec5d2d7b
commit
ace0dc3de9
2 changed files with 12 additions and 0 deletions
11
user/clear.c
Normal file
11
user/clear.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
#include "kernel/types.h"
|
||||
#include "kernel/stat.h"
|
||||
#include "user/user.h"
|
||||
|
||||
int
|
||||
main(void)
|
||||
{
|
||||
write(1, "\e[1;1H\e[2J", 12);
|
||||
|
||||
exit(0);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue