aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/commands/command.c
diff options
context:
space:
mode:
authorMarvin Borner2019-09-21 18:26:46 +0200
committerMarvin Borner2019-09-21 18:26:46 +0200
commitd9324456b4dd4b3a520534fa7a2996358d3484f0 (patch)
tree2d0980686b8363f8e0a7cea6a5a583ed186deb53 /src/kernel/commands/command.c
parentc31d465a62fbc0ec3194838db4745585471c1050 (diff)
Added clear command
Diffstat (limited to 'src/kernel/commands/command.c')
-rw-r--r--src/kernel/commands/command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kernel/commands/command.c b/src/kernel/commands/command.c
index c673b44..df33a24 100644
--- a/src/kernel/commands/command.c
+++ b/src/kernel/commands/command.c
@@ -16,6 +16,8 @@ void exec_command(char *command) {
terminal_write_line("I can't help you write now");
else if (starts_with(command, "ping"))
terminal_write_line("pong!");
+ else if (starts_with(command, "clear"))
+ terminal_clear();
else if (starts_with(command, "shutdown"))
acpi_poweroff();
else if (starts_with(command, "zzz"))