Kernel: Shell opens standard files

This commit is contained in:
Bananymous 2023-05-31 23:14:15 +03:00
parent 789ca3db1a
commit 0ccc23d544
1 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,9 @@ namespace Kernel
Shell::Shell()
{
MUST(Process::current().open("/dev/tty1", O_RDONLY));
MUST(Process::current().open("/dev/tty1", O_WRONLY));
MUST(Process::current().open("/dev/tty1", O_WRONLY));
MUST(set_prompt(s_default_prompt));
MUST(m_buffer.push_back(""sv));
MUST(Process::current().set_termios(termios { .canonical = false, .echo = false }));