summaryrefslogtreecommitdiff
path: root/Source/Kernel/Shell/KernelShell.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/Shell/KernelShell.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/Shell/KernelShell.class.cpp')
-rw-r--r--Source/Kernel/Shell/KernelShell.class.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Kernel/Shell/KernelShell.class.cpp b/Source/Kernel/Shell/KernelShell.class.cpp
index 9fec9c7..399211d 100644
--- a/Source/Kernel/Shell/KernelShell.class.cpp
+++ b/Source/Kernel/Shell/KernelShell.class.cpp
@@ -70,11 +70,9 @@ u32int KernelShell::run() {
};
while (1) {
- m_vt->setColor(KVT_LIGHTCOLOR);
- *m_vt << VFS::path(m_cwd) << " # ";
- m_vt->setColor(KVT_ENTRYCOLOR);
+ *m_vt << MVT::setfgcolor(KVT_LIGHTCOLOR) << VFS::path(m_cwd) << " # " << MVT::setfgcolor(KVT_ENTRYCOLOR);
Vector<String> tokens = m_vt->readLine().split(" ");
- m_vt->setColor(KVT_FGCOLOR);
+ *m_vt << MVT::setfgcolor(KVT_FGCOLOR);
if (tokens[0] == "help") {
*m_vt << " - Command list for integrated kernel shell:\n";
*m_vt << " - help shows this help screen\n";