diff options
author | Marvin Borner | 2019-10-29 00:49:30 +0100 |
---|---|---|
committer | Marvin Borner | 2019-10-29 00:49:30 +0100 |
commit | 8a2a587f6f45a92eb66bd04d5e1c524d38348a7c (patch) | |
tree | 9c65c8a5d45f27ed645d457e18b40f5f9a9a0985 /src | |
parent | 798176a8145963d6571154b03abb8d29f9095869 (diff) |
Fixed backspace array char removal
Diffstat (limited to 'src')
-rw-r--r-- | src/kernel/graphics/vesa.c | 1 |
1 files changed, 1 insertions, 0 deletions
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') { |