summaryrefslogtreecommitdiff
path: root/Kernel/VGA.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/VGA.cpp')
-rw-r--r--Kernel/VGA.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Kernel/VGA.cpp b/Kernel/VGA.cpp
index 59e3c73267..b2571ecdd8 100644
--- a/Kernel/VGA.cpp
+++ b/Kernel/VGA.cpp
@@ -15,6 +15,12 @@ void vga_scroll_up()
memset(vga_mem + (160 * 24), 0, 160);
}
+void vga_clear()
+{
+ InterruptDisabler disabler;
+ memset(vga_mem, 0, 160 * 25);
+}
+
void vga_putch_at(byte row, byte column, byte ch)
{
word cur = (row * 160) + (column * 2);