summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1994-10-22 18:12:17 +0000
committerache <ache@FreeBSD.org>1994-10-22 18:12:17 +0000
commitf3bbd9e5e31c8e5684e1fe3da981377ecba7153b (patch)
tree1d2214f2c3a919cfcf808be7be4bf30f651698a3
parent12080d95a7e749a9b256193ce10bff9b8ffc0570 (diff)
downloadFreeBSD-src-f3bbd9e5e31c8e5684e1fe3da981377ecba7153b.zip
FreeBSD-src-f3bbd9e5e31c8e5684e1fe3da981377ecba7153b.tar.gz
cfmakeraw(): set IGNBRK, clear IXOFF, INPCK per Bruce suggestion
Set IGNPAR, clear NOFLSH, PENDIN, TOSTOP, ECHOE, ECHOK
-rw-r--r--lib/libc/gen/termios.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/gen/termios.c b/lib/libc/gen/termios.c
index a949023..a80e5b9 100644
--- a/lib/libc/gen/termios.c
+++ b/lib/libc/gen/termios.c
@@ -163,9 +163,10 @@ cfmakeraw(t)
struct termios *t;
{
- t->c_iflag &= ~(IMAXBEL|IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
+ t->c_iflag &= ~(IMAXBEL|IXOFF|INPCK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
+ t->c_iflag |= (IGNBRK|IGNPAR);
t->c_oflag &= ~OPOST;
- t->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
+ t->c_lflag &= ~(ECHO|ECHOE|ECHOK|ECHONL|ICANON|ISIG|IEXTEN|NOFLSH|TOSTOP|PENDIN);
t->c_cflag &= ~(CSIZE|PARENB);
t->c_cflag |= CS8;
t->c_cc[VMIN] = 1;
OpenPOWER on IntegriCloud