summaryrefslogtreecommitdiff
path: root/Source/Kernel/VTManager/FileVT.class.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Kernel/VTManager/FileVT.class.cpp')
-rw-r--r--Source/Kernel/VTManager/FileVT.class.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/Kernel/VTManager/FileVT.class.cpp b/Source/Kernel/VTManager/FileVT.class.cpp
index 24a1b63..d0f564f 100644
--- a/Source/Kernel/VTManager/FileVT.class.cpp
+++ b/Source/Kernel/VTManager/FileVT.class.cpp
@@ -11,10 +11,12 @@ FileVT::FileVT(String filename, u8int mode, FSNode *start, u8int encoding) :
}
}
-void FileVT::setCursorCol(u32int col) {
+void FileVT::handleEscape(mvt_esc_cmd_t cmd) {
if (!m_isWriting) return;
- while (m_buffer.size() < col) {
- put(" ");
+ if (cmd.cmd == MVTCMD_SETCSRCOL) {
+ while ((int)m_buffer.size() < cmd.a) {
+ put(" ");
+ }
}
}