summaryrefslogtreecommitdiff
path: root/Kernel/VGA.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-10-27 23:42:20 +0200
committerAndreas Kling <awesomekling@gmail.com>2018-10-27 23:42:20 +0200
commit8289a5c93cabc3cfb4cf6e5e551d8ad6fca58a9f (patch)
tree35b40937c6128a9462bd5c142d3f4a3c453fa6ca /Kernel/VGA.cpp
parentcc7e3519a67c8080c44a104ab1b5d4d61b6b35c5 (diff)
downloadserenity-8289a5c93cabc3cfb4cf6e5e551d8ad6fca58a9f.zip
Implement 'H' and 'J' escape sequences.
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);