termios: fix raw mode initialization
Change-Id: Ibdf0b84fd3ef47c091a670b1cdd00edf2cde196d Reviewed-on: https://review.haiku-os.org/c/haiku/+/5869 Reviewed-by: Jérôme Duval <jerome.duval@gmail.com> Reviewed-by: waddlesplash <waddlesplash@gmail.com> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
This commit is contained in:
parent
fb69e06195
commit
07ca9bce14
@ -166,6 +166,8 @@ cfmakeraw(struct termios *termios)
|
||||
termios->c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);
|
||||
termios->c_cflag &= ~(CSIZE | PARENB);
|
||||
termios->c_cflag |= CS8;
|
||||
termios->c_cc[VMIN] = 1; // input is available character by character
|
||||
termios->c_cc[VTIME] = 0;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user