summaryrefslogtreecommitdiff
path: root/Source/Kernel/VTManager
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Kernel/VTManager')
-rw-r--r--Source/Kernel/VTManager/SimpleVT.class.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Kernel/VTManager/SimpleVT.class.cpp b/Source/Kernel/VTManager/SimpleVT.class.cpp
index 9639d50..89391b2 100644
--- a/Source/Kernel/VTManager/SimpleVT.class.cpp
+++ b/Source/Kernel/VTManager/SimpleVT.class.cpp
@@ -82,6 +82,7 @@ void SimpleVT::scroll() {
}
void SimpleVT::updateCursor() {
+ if (!m_mapped) return;
Disp::moveCursor(m_csrlin + m_maprow, m_csrcol + m_mapcol);
}
@@ -126,7 +127,7 @@ void SimpleVT::put(WChar c, bool updatecsr) {
scroll();
m_csrlin--;
}
- if (updatecsr) updateCursor();
+ if (updatecsr && m_mapped) updateCursor();
}
void SimpleVT::hexDump(u8int *ptr, u32int sz, bool addnl) {