aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-01-06 01:19:57 -0500
committerRaghuram Subramani <raghus2247@gmail.com>2025-01-06 01:19:57 -0500
commita435a8be5be5ef9941ef2943bb351abd7ff32bd4 (patch)
tree733ea5f349c5eaf51f53116219945662b5231f8d
parentcb5ab0723319e6b2a56cb2e1a1c1ead1f1a82c22 (diff)
kernel: drivers: vga_text_buffer: Disable the cursor
-rw-r--r--kernel/drivers/vga_text_buffer/vga_text_buffer.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/drivers/vga_text_buffer/vga_text_buffer.c b/kernel/drivers/vga_text_buffer/vga_text_buffer.c
index f5e25f7..23a9688 100644
--- a/kernel/drivers/vga_text_buffer/vga_text_buffer.c
+++ b/kernel/drivers/vga_text_buffer/vga_text_buffer.c
@@ -23,6 +23,8 @@
#include <libk/stdio.h>
#include <libk/string.h>
+#include <kernel/io.h>
+
#include <drivers/vga_text_buffer.h>
static uint8_t vga_text_buffer_row;
@@ -63,6 +65,13 @@ vga_text_buffer_write_entry_at(const char c,
void
vga_text_buffer_initialize(void)
{
+ /*
+ * Disable the cursor
+ * TODO: Abstract this and all other cursor functionality out
+ */
+ outb(0x3D4, 0x0A);
+ outb(0x3D5, 0x20);
+
vga_text_buffer_row = 0;
vga_text_buffer_column = 0;
vga_text_buffer_color