From d9324456b4dd4b3a520534fa7a2996358d3484f0 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 21 Sep 2019 18:26:46 +0200 Subject: Added clear command --- src/kernel/graphics/vga.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/kernel/graphics/vga.c') diff --git a/src/kernel/graphics/vga.c b/src/kernel/graphics/vga.c index a72ea91..3e910f1 100644 --- a/src/kernel/graphics/vga.c +++ b/src/kernel/graphics/vga.c @@ -44,6 +44,8 @@ uint16_t *terminal_buffer; char text[1024] = {0}; void terminal_clear() { + terminal_row = 0; + terminal_column = 0; for (size_t y = 0; y < VGA_HEIGHT; y++) { for (size_t x = 0; x < VGA_WIDTH; x++) { const size_t index = y * VGA_WIDTH + x; -- cgit v1.2.3