From 8a2a587f6f45a92eb66bd04d5e1c524d38348a7c Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 29 Oct 2019 00:49:30 +0100 Subject: Fixed backspace array char removal --- src/kernel/graphics/vesa.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/kernel/graphics/vesa.c') diff --git a/src/kernel/graphics/vesa.c b/src/kernel/graphics/vesa.c index 508e46c..ece901c 100644 --- a/src/kernel/graphics/vesa.c +++ b/src/kernel/graphics/vesa.c @@ -288,6 +288,7 @@ void vesa_keyboard_char(char ch) { if (ch == 0x08) { if (terminal_x != 0) terminal_x -= font_width + 2; + text[strlen(text) - 1] = '\0'; } else if (ch == 0x09) { terminal_x += 4 * (font_width + 2); } else if (ch == '\r') { -- cgit v1.2.3