diff options
author | Alexis211 <alexis211@gmail.com> | 2009-08-31 00:25:21 +0200 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-08-31 00:25:21 +0200 |
commit | 68a8fb4e3b3e9087904b17ce6d81983950b9dca9 (patch) | |
tree | 57518642ab813fddfb3887a47f7a01d839d9bb70 /Source/Kernel/TaskManager/Process.class.cpp | |
parent | 9ad8e2fe0242da26dae7fca2b180640637c8c062 (diff) | |
download | Melon-68a8fb4e3b3e9087904b17ce6d81983950b9dca9.tar.gz Melon-68a8fb4e3b3e9087904b17ce6d81983950b9dca9.zip |
We now have complete support for keybord, IN UTF-8 !!
Diffstat (limited to 'Source/Kernel/TaskManager/Process.class.cpp')
-rw-r--r-- | Source/Kernel/TaskManager/Process.class.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/Kernel/TaskManager/Process.class.cpp b/Source/Kernel/TaskManager/Process.class.cpp index 5330719..3363ab0 100644 --- a/Source/Kernel/TaskManager/Process.class.cpp +++ b/Source/Kernel/TaskManager/Process.class.cpp @@ -5,7 +5,7 @@ Process::Process() { //Private constructor, does nothing } -Process* Process::createKernel(String cmdline) { +Process* Process::createKernel(String cmdline, VirtualTerminal *vt) { Process* p = new Process(); p->m_pid = 0; p->m_cmdline = cmdline; @@ -35,6 +35,7 @@ Process::Process(String cmdline, u32int uid) { m_state = P_RUNNING; m_pagedir = new PageDirectory(kernelPageDirectory); m_uid = uid; + m_vt = Task::currentProcess->getVirtualTerminal(); m_stacksstart = 0xC0000000; } @@ -83,3 +84,11 @@ void Process::threadFinishes(Thread* thread, u32int retval) { PageDirectory* Process::getPagedir() { return m_pagedir; } + +VirtualTerminal* Process::getVirtualTerminal() { + return m_vt; +} + +void Process::setVirtualTerminal(VirtualTerminal* vt) { + m_vt = vt; +} |