mirror of
https://github.com/SerenityOS/serenity
synced 2026-04-25 17:15:42 +02:00
LibC: Properly set termios flags in cfmakeraw()
OPOST is an c_oflag flag. Similarly, ECHO, ECHONL etc. are c_lflag flags.
This commit is contained in:
committed by
Lucas Chollet
parent
a6acdbf76f
commit
e6fe911bd7
@@ -150,8 +150,8 @@ void cfmakeraw(struct termios* tp)
|
||||
|
||||
auto& termios = *tp;
|
||||
termios.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON);
|
||||
termios.c_lflag &= ~OPOST;
|
||||
termios.c_cflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);
|
||||
termios.c_oflag &= ~OPOST;
|
||||
termios.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);
|
||||
termios.c_cflag |= CS8;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user