diff options
Diffstat (limited to 'Source/Kernel/VTManager')
-rw-r--r-- | Source/Kernel/VTManager/SimpleVT.class.cpp | 2 | ||||
-rw-r--r-- | Source/Kernel/VTManager/SimpleVT.class.h | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/Source/Kernel/VTManager/SimpleVT.class.cpp b/Source/Kernel/VTManager/SimpleVT.class.cpp index 4a16b54..28f9f98 100644 --- a/Source/Kernel/VTManager/SimpleVT.class.cpp +++ b/Source/Kernel/VTManager/SimpleVT.class.cpp @@ -9,6 +9,7 @@ SimpleVT::SimpleVT(u32int rows, u32int cols, u8int fgcolor, u8int bgcolor) : Vir m_rows = rows; m_cols = cols; m_mapped = false; + m_hideCursor = false; setColor(fgcolor, bgcolor); clear(); @@ -87,6 +88,7 @@ void SimpleVT::scroll() { void SimpleVT::updateCursor() { if (!m_mapped) return; + if (m_hideCursor) return; Disp::moveCursor(m_csrlin + m_maprow, m_csrcol + m_mapcol); } diff --git a/Source/Kernel/VTManager/SimpleVT.class.h b/Source/Kernel/VTManager/SimpleVT.class.h index 9eda6de..8639a82 100644 --- a/Source/Kernel/VTManager/SimpleVT.class.h +++ b/Source/Kernel/VTManager/SimpleVT.class.h @@ -10,7 +10,7 @@ class SimpleVT : public VirtualTerminal { u8int m_color; u32int m_maprow, m_mapcol; - bool m_mapped; + bool m_mapped, m_hideCursor; u32int m_csrlin, m_csrcol; @@ -24,6 +24,10 @@ class SimpleVT : public VirtualTerminal { bool isBoxed() { return true; } u8int height() { return m_rows; } u8int width() { return m_cols; } + u8int csrlin() { return m_csrlin; } + u8int csrcol() { return m_csrcol; } + + void hideCursor(bool hide = true) { m_hideCursor = hide; } void map(s32int row = -1, s32int col = -1); void unmap(); |