aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/commands
diff options
context:
space:
mode:
authorMarvin Borner2019-10-26 16:37:33 +0200
committerMarvin Borner2019-10-26 16:37:33 +0200
commit5668d7cfc5bb05057c5368eceb2bbb8a6a45a8c3 (patch)
tree44229f0221635a5cee11178a80119572aedf3825 /src/kernel/commands
parent5a4db78897063e5b09a676b02fec3ba4a2965921 (diff)
Removed VGA driver support
Diffstat (limited to 'src/kernel/commands')
-rw-r--r--src/kernel/commands/command.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/kernel/commands/command.c b/src/kernel/commands/command.c
index df33a24..b1d9f9b 100644
--- a/src/kernel/commands/command.c
+++ b/src/kernel/commands/command.c
@@ -1,7 +1,7 @@
-#include "../graphics/graphics.h"
#include "../lib/lib.h"
#include "../io/io.h"
#include "../acpi/acpi.h"
+#include "../graphics/vesa.h"
int32_t starts_with(const char *a, const char *b) {
size_t length_pre = strlen(b);
@@ -11,19 +11,19 @@ int32_t starts_with(const char *a, const char *b) {
void exec_command(char *command) {
if (starts_with(command, "ls"))
- terminal_write_line("Listing files");
+ vesa_draw_string("Listing files\n");
else if (starts_with(command, "help"))
- terminal_write_line("I can't help you write now");
+ vesa_draw_string("I can't help you write now\n");
else if (starts_with(command, "ping"))
- terminal_write_line("pong!");
+ vesa_draw_string("pong!\n");
else if (starts_with(command, "clear"))
- terminal_clear();
+ vesa_clear();
else if (starts_with(command, "shutdown"))
acpi_poweroff();
else if (starts_with(command, "zzz"))
- terminal_write_line("Not implemented");
+ vesa_draw_string("Not implemented\n");
else if (starts_with(command, "reboot"))
reboot();
else
- terminal_write_line("Command not found!");
+ vesa_draw_string("Command not found!\n");
}