summaryrefslogtreecommitdiff
path: root/Source/Kernel/Shell
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-11-14 13:16:01 +0100
committerAlexis211 <alexis211@gmail.com>2009-11-14 13:16:01 +0100
commit4d5c1fcf9b1616db662a5cab0cec5ac878ce5175 (patch)
tree5ae433b358f933a9cec5bc9ef3c30ba9395fe322 /Source/Kernel/Shell
parent2b9e97b8635c20c5a2b87789b1014489863d1994 (diff)
downloadMelon-4d5c1fcf9b1616db662a5cab0cec5ac878ce5175.tar.gz
Melon-4d5c1fcf9b1616db662a5cab0cec5ac878ce5175.zip
Changed some things in the way init is handled.
Also : - Modified stuff in the GOL simulator - Added support for a kernel-built-in keymap
Diffstat (limited to 'Source/Kernel/Shell')
-rw-r--r--Source/Kernel/Shell/KernelShell.class.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Kernel/Shell/KernelShell.class.cpp b/Source/Kernel/Shell/KernelShell.class.cpp
index cd897f2..b6898ba 100644
--- a/Source/Kernel/Shell/KernelShell.class.cpp
+++ b/Source/Kernel/Shell/KernelShell.class.cpp
@@ -19,7 +19,6 @@ void KernelShell::setup(DirectoryNode* cwd, VirtualTerminal *vt) {
m_vt = vt;
Task::currProcess()->setInVT(vt);
Task::currProcess()->setOutVT(vt);
- ((ScrollableVT*)m_vt)->map(9);
Kbd::setFocus(m_vt);
m_cwd = cwd;
*m_vt << "Welcome to Melon's kernel shell !\n";
@@ -32,7 +31,9 @@ KernelShell::KernelShell(DirectoryNode* cwd, VirtualTerminal* vt) {
}
KernelShell::KernelShell(DirectoryNode* cwd) {
- setup(cwd, new ScrollableVT(15, 76, 200, SHELL_FGCOLOR, SHELL_BGCOLOR));
+ ScrollableVT* vt = new ScrollableVT(15, 76, 200, SHELL_FGCOLOR, SHELL_BGCOLOR);
+ vt->map(9);
+ setup(cwd, vt);
}
KernelShell::~KernelShell() {