summaryrefslogtreecommitdiff
path: root/src/kernel/vga.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/vga.c')
-rw-r--r--src/kernel/vga.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kernel/vga.c b/src/kernel/vga.c
index c03e5f0..daa92fe 100644
--- a/src/kernel/vga.c
+++ b/src/kernel/vga.c
@@ -31,6 +31,8 @@ void vga_blank() {
void vga_printch(char ch) {
if (ch == '\n')
cursor = ((cursor - VGA_START) / VGA_COLUMNS + 1) * VGA_COLUMNS + VGA_START;
+ else if (ch == '\b')
+ *--cursor = mask | ' ';
else
*cursor++ = mask | (uint8_t)ch;
if (cursor == VGA_END)