From 3fdd1f7eabe72994321c2a31d6968a6d1cd171cc Mon Sep 17 00:00:00 2001
From: y2-shaffan <yousuf2.shaffan@live.uwe.ac.uk>
Date: Mon, 4 Mar 2024 12:58:17 +0000
Subject: [PATCH] Update file kernel.c

---
 kernel.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel.c b/kernel.c
index 95be315..d9a6b6e 100644
--- a/kernel.c
+++ b/kernel.c
@@ -91,8 +91,8 @@ void terminal_putentryat(char c, uint8_t color, size_t x, size_t y) {
         for (size_t x = 0; x < VGA_WIDTH; x++) {
             terminal_buffer[(VGA_HEIGHT - 1) * VGA_WIDTH + x] = make_vgaentry(' ', color);
         }
-        // Move the cursor to the last row
-        y = VGA_HEIGHT - 1;
+        // Move the cursor to the next row
+        y = y + 1;
     }
 
     const size_t index = y * VGA_WIDTH + x;
-- 
GitLab