Kernel: Add better termios support
I'm not sure if this is correct but at least it's better than before :)
This commit is contained in:
@@ -158,7 +158,15 @@ namespace Kernel
|
||||
}
|
||||
|
||||
PseudoTerminalSlave::PseudoTerminalSlave(BAN::String&& name, uint32_t number, mode_t mode, uid_t uid, gid_t gid)
|
||||
: TTY(mode, uid, gid)
|
||||
: TTY({
|
||||
.c_iflag = 0,
|
||||
.c_oflag = 0,
|
||||
.c_cflag = CS8,
|
||||
.c_lflag = ECHO | ICANON,
|
||||
.c_cc = {},
|
||||
.c_ospeed = B38400,
|
||||
.c_ispeed = B38400,
|
||||
}, mode, uid, gid)
|
||||
, m_name(BAN::move(name))
|
||||
, m_number(number)
|
||||
{}
|
||||
|
||||
Reference in New Issue
Block a user