Clear terminal command
This commit is contained in:
parent
16ec5d2d7b
commit
ace0dc3de9
2 changed files with 12 additions and 0 deletions
1
Makefile
1
Makefile
|
@ -132,6 +132,7 @@ UPROGS=\
|
|||
$U/_grind\
|
||||
$U/_wc\
|
||||
$U/_zombie\
|
||||
$U/_clear\
|
||||
|
||||
fs.img: mkfs/mkfs README $(UPROGS)
|
||||
mkfs/mkfs fs.img README $(UPROGS)
|
||||
|
|
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…
Reference in a new issue