mirror of
https://git.checksum.fail/alec/erythros
synced 2025-12-12 05:59:53 +02:00
Meta: Add files to repository
This commit is contained in:
9
System/Shell/Commands/clear.HC
Normal file
9
System/Shell/Commands/clear.HC
Normal file
@@ -0,0 +1,9 @@
|
||||
I64 @shell_cmd_clear(@shell* sh, I64 argc, U8** argv)
|
||||
{
|
||||
if (argc > 1) {
|
||||
Stdio.WriteLine(sh, "esh: clear: too many arguments\n");
|
||||
return 1;
|
||||
}
|
||||
Stdio.WriteLine(sh, "\x1b[2J\x1b[0;0H");
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user