aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/graphics/vesa.c
diff options
context:
space:
mode:
authorMarvin Borner2019-10-31 17:47:40 +0100
committerGitHub2019-10-31 17:47:40 +0100
commitc7e755cb843593db1eedb26c5c24932bbe743745 (patch)
treead14da17e6d0d883e68cc6eacc99ae522036dda8 /src/kernel/graphics/vesa.c
parentfd4f0a11126a20e75d72f8f2e6d418598fd5f37d (diff)
parent40a214f3c69a3d7da8c2f9bed5038dfa0ab72d4b (diff)
Merged pull request usermode
Added usermode
Diffstat (limited to 'src/kernel/graphics/vesa.c')
-rw-r--r--src/kernel/graphics/vesa.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/kernel/graphics/vesa.c b/src/kernel/graphics/vesa.c
index 8347c56..858ed95 100644
--- a/src/kernel/graphics/vesa.c
+++ b/src/kernel/graphics/vesa.c
@@ -167,7 +167,7 @@ void set_optimal_resolution() {
switch_to_vga();
} else vga_log("Mode detection succeeded", 11);
- timer_wait(500);
+ // timer_wait(500);
vbe_set_mode(highest);
@@ -287,6 +287,8 @@ void vesa_draw_char(char ch) {
} else if (ch == '\n') {
terminal_x = 0;
terminal_y += font_height + 2;
+ } else if (ch == '\t') {
+ terminal_x += 4 * (font_width + 2);
}
if (terminal_x >= vbe_width) {
@@ -309,7 +311,7 @@ void vesa_keyboard_char(char ch) {
} else if (ch == '\n') {
vesa_draw_char(ch);
exec_command(text);
- memory_set(text, 0, sizeof(text));
+ memset(text, 0, sizeof(text));
// terminal_scroll();
} else if (ch >= ' ') {
vesa_draw_char(ch);
@@ -322,7 +324,7 @@ void vesa_keyboard_char(char ch) {
terminal_color);
}
-void vesa_draw_string(char *data) {
+void vesa_draw_string(const char *data) {
int i = 0;
while (data[i] != '\0') {
vesa_draw_char(data[i]);