[eros-cvs] cvs commit: eros/src/base/sys/console cons_TextMode.cxx
shap@eros.cs.jhu.edu
shap@eros.cs.jhu.edu
Wed, 8 Aug 2001 18:23:23 -0400
shap 01/08/08 18:23:23
Modified: src/base/sys/console cons_TextMode.cxx
Log:
Update the cursor. Sigh. Debugger really needs to squirrel and restore stuff.
Shouldn't be *that* hard to do (nyuk nyuk splat).
Revision Changes Path
1.3 +14 -1 eros/src/base/sys/console/cons_TextMode.cxx
Index: cons_TextMode.cxx
===================================================================
RCS file: /cvs/eros/src/base/sys/console/cons_TextMode.cxx,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- cons_TextMode.cxx 2001/07/25 04:50:07 1.2
+++ cons_TextMode.cxx 2001/08/08 22:23:23 1.3
@@ -108,6 +108,19 @@
}
static void
+ShowCursorAt(uint32_t pos)
+{
+ uint32_t cursAddr = (uint32_t) pos;
+
+ cursAddr += StartAddressReg;
+
+ outb(0xE, 0x3D4);
+ outb((cursAddr >> 8) & 0xFFu, 0x3D5);
+ outb(0xF, 0x3D4);
+ outb((cursAddr & 0xFFu), 0x3D5);
+}
+
+static void
Scroll(uint32_t startPos, uint32_t endPos, int amount)
{
if (amount > 0) {
@@ -190,7 +203,7 @@
}
assert (offset < rows * cols);
- /* ShowCursorAt(offset); */
+ ShowCursorAt(offset);
return;
}