feature: clear added to the shell
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user