]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
cfmakeraw() is not posix
authorBrian Wellington <source@isc.org>
Thu, 22 Jun 2000 20:50:55 +0000 (20:50 +0000)
committerBrian Wellington <source@isc.org>
Thu, 22 Jun 2000 20:50:55 +0000 (20:50 +0000)
lib/isc/unix/keyboard.c

index ba0a1419d36960ab0d6aa804f9561e2faa518ea6..b7bc38c64c78bd2d7b1f1bf0953809c441884a64 100644 (file)
@@ -53,7 +53,13 @@ isc_keyboard_open(isc_keyboard_t *keyboard) {
 
        current_mode = keyboard->saved_mode;
 
-       cfmakeraw(&current_mode);
+       current_mode.c_iflag &=
+                       ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
+       current_mode.c_oflag &= ~OPOST;
+       current_mode.c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
+       current_mode.c_cflag &= ~(CSIZE|PARENB);
+       current_mode.c_cflag |= CS8;
+
        current_mode.c_cc[VMIN] = 1;
        current_mode.c_cc[VTIME] = 0;
        if (tcsetattr(fd, TCSAFLUSH, &current_mode) < 0) {