summaryrefslogtreecommitdiff
path: root/Source/Kernel/VTManager/FileVT.class.cpp
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-12-23 19:19:55 +0100
committerAlexis211 <alexis211@gmail.com>2009-12-23 19:19:55 +0100
commite2d5d79bbc90d73f709953f04b2b0d1faac4d43e (patch)
treebde6f928e3a45ef66f4056cbc932bc21fe44cb31 /Source/Kernel/VTManager/FileVT.class.cpp
parent7ede286ebcb845fe4bfdfb948c6073573b01c3cb (diff)
downloadMelon-e2d5d79bbc90d73f709953f04b2b0d1faac4d43e.tar.gz
Melon-e2d5d79bbc90d73f709953f04b2b0d1faac4d43e.zip
Changed the way virtual terminal commands are handled
These commands include those for moving the cursor, showing/hiding it, changing the color, ...
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(" ");
+ }
}
}