Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2011-07-05 22:01:13 +0400
committerCorinna Vinschen <corinna@vinschen.de>2011-07-05 22:01:13 +0400
commit7616b79e0d61490999284b18cc0a75c1a2b46568 (patch)
treededb8aec7f98cf6683c2a156889fcb55ccf14bf8 /winsup/cygwin/fhandler_console.cc
parent3fe31f263341f2850dcb71a2f5ee7dff4e379c0a (diff)
* fhandler_console.cc (fhandler_console::input_tcsetattr): Make
ENABLE_PROCESSED_INPUT flag only depending on value of IGNBRK. (fhandler_console::tcgetattr): Don't set ISIG depending on ENABLE_PROCESSED_INPUT, set IGNBRK instead.
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 ? */