diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1994-10-22 01:49:27 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1994-10-22 01:49:27 +0000 |
| commit | 4ceeaa06a816ea093b81fd2465320e7e34ebed1f (patch) | |
| tree | 8e419f1d6422300f19b3b1562fe7ab9bac30a989 /lib/libc | |
| parent | 844a5df643a7d15736fe6506655a5a29332d7c8c (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/gen/termios.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/gen/termios.c b/lib/libc/gen/termios.c index a99d86f93036..a9490239f44c 100644 --- a/lib/libc/gen/termios.c +++ b/lib/libc/gen/termios.c @@ -163,12 +163,13 @@ cfmakeraw(t) struct termios *t; { - t->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON); + t->c_iflag &= ~(IMAXBEL|IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON); t->c_oflag &= ~OPOST; t->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN); t->c_cflag &= ~(CSIZE|PARENB); t->c_cflag |= CS8; - /* XXX set MIN/TIME */ + t->c_cc[VMIN] = 1; + t->c_cc[VTIME] = 0; } tcsendbreak(fd, len) |
