feature: clear added to the shell

This commit is contained in:
2024-09-17 13:57:52 +02:00
parent a02931a165
commit e316910581
4 changed files with 21 additions and 1 deletions

View File

@ -31,6 +31,8 @@ static CMD_TOK find_command(char *line)
command = HALT;
else if (!strcmp(line, "stack"))
command = STACK;
else if (!strcmp(line, "clear"))
command = CLEAR;
else if (!strcmp(line, "echo"))
command = ECHO;
else if (!strcmp(line, "color"))
@ -100,6 +102,9 @@ void shell_init(void)
case STACK:
print_stack();
break;
case CLEAR:
terminal_clear();
break;
case ECHO:
kprintf(0, "echoing\n");
break;