aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/graphics/vga.c
diff options
context:
space:
mode:
authorMarvin Borner2019-09-21 18:26:46 +0200
committerMarvin Borner2019-09-21 18:26:46 +0200
commitd9324456b4dd4b3a520534fa7a2996358d3484f0 (patch)
tree2d0980686b8363f8e0a7cea6a5a583ed186deb53 /src/kernel/graphics/vga.c
parentc31d465a62fbc0ec3194838db4745585471c1050 (diff)
Added clear command
Diffstat (limited to 'src/kernel/graphics/vga.c')
-rw-r--r--src/kernel/graphics/vga.c2
1 files changed, 2 insertions, 0 deletions
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;