summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_console.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler_console.cc')
-rw-r--r--winsup/cygwin/fhandler_console.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc
index 665e2b225..8eb96b9a7 100644
--- a/winsup/cygwin/fhandler_console.cc
+++ b/winsup/cygwin/fhandler_console.cc
@@ -970,7 +970,7 @@ fhandler_console::input_tcsetattr (int, struct termios const *t)
flags &= ~ENABLE_ECHO_INPUT;
}
- if ((t->c_lflag & ISIG) && !(t->c_iflag & IGNBRK))
+ if (!(t->c_iflag & IGNBRK))
{
flags |= ENABLE_PROCESSED_INPUT;
}
@@ -1025,8 +1025,8 @@ fhandler_console::tcgetattr (struct termios *t)
if (flags & ENABLE_LINE_INPUT)
t->c_lflag |= ICANON;
- if (flags & ENABLE_PROCESSED_INPUT)
- t->c_lflag |= ISIG;
+ if (!(flags & ENABLE_PROCESSED_INPUT))
+ t->c_iflag |= IGNBRK;
/* What about ENABLE_WINDOW_INPUT
and ENABLE_MOUSE_INPUT ? */