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:
Zelenoviy 2022-12-01 02:27:43 +07:00 committed by waddlesplash
parent fb69e06195
commit 07ca9bce14

View File

@ -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;
}