summaryrefslogtreecommitdiffstats
path: root/arch/x86/io/VGADisplay.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/io/VGADisplay.cpp')
-rw-r--r--arch/x86/io/VGADisplay.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/io/VGADisplay.cpp b/arch/x86/io/VGADisplay.cpp
index ceb4862..7246102 100644
--- a/arch/x86/io/VGADisplay.cpp
+++ b/arch/x86/io/VGADisplay.cpp
@@ -137,3 +137,12 @@ bool VGADisplay::printChar(const char &c)
}
}
};
+
+void VGADisplay::clearScreen()
+{
+ xCurr = yCurr = 0;
+ videoMem = (dchar *)VGADisplayInfo::videoMemAddr;
+ uint16 maxPos = VGADisplayInfo::height * VGADisplayInfo::width * 2;
+
+ for(uint16 pos = 0; pos < maxPos; pos++) *this << ' ';
+};