diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-10-30 15:33:37 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-10-30 15:33:37 +0100 |
commit | 7a7956a59526e21262675e7647a89c865d93d551 (patch) | |
tree | d906ffe5fe57904e1a78ed4b8965dfd85e2b9f16 /Kernel/Syscall.cpp | |
parent | 68739dc43e6bc42f9cac79fe5cbec714ddeeb218 (diff) | |
download | serenity-7a7956a59526e21262675e7647a89c865d93d551.zip |
Virtual consoles kinda work!
We now make three VirtualConsoles at boot: tty0, tty1, and tty2.
We launch an instance of /bin/sh in each one.
You switch between them with Alt+1/2/3
How very very cool :^)
Diffstat (limited to 'Kernel/Syscall.cpp')
-rw-r--r-- | Kernel/Syscall.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/Syscall.cpp b/Kernel/Syscall.cpp index 279d84a451..8fd578166c 100644 --- a/Kernel/Syscall.cpp +++ b/Kernel/Syscall.cpp @@ -70,6 +70,8 @@ DWORD handle(DWORD function, DWORD arg1, DWORD arg2, DWORD arg3) return current->sys$getcwd((char*)arg1, (size_t)arg2); case Syscall::PosixOpen: return current->sys$open((const char*)arg1, (int)arg2); + case Syscall::PosixWrite: + return current->sys$write((int)arg1, (const void*)arg2, (size_t)arg3); case Syscall::PosixClose: //kprintf("syscall: close(%d)\n", arg1); return current->sys$close((int)arg1); |