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-06-30 17:55:57 +0400
committerCorinna Vinschen <corinna@vinschen.de>2011-06-30 17:55:57 +0400
commit4b626add7e96e02b7ab75da54834406da20e4717 (patch)
treeae095215d8749c65a2ac27309a015c2e5613f9ce /winsup/cygwin/fhandler_console.cc
parent9e1fd6bcf72c6cd45be5e4bb50ce604564e5706e (diff)
* fhandler_console.cc (fhandler_console::read): Add comment.
(fhandler_console::input_tcsetattr): Don't set ENABLE_PROCESSED_INPUT if IGNBRK flag is set.
Diffstat (limited to 'winsup/cygwin/fhandler_console.cc')
-rw-r--r--winsup/cygwin/fhandler_console.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc
index eb4a41f16..665e2b225 100644
--- a/winsup/cygwin/fhandler_console.cc
+++ b/winsup/cygwin/fhandler_console.cc
@@ -441,6 +441,7 @@ restart:
if (control_key_state & LEFT_ALT_PRESSED)
dev_state.nModifiers |= 8;
+ /* Allow Backspace to emit ^? and escape sequences. */
if (input_rec.Event.KeyEvent.wVirtualScanCode == 14)
{
char c = dev_state.backspace_keycode;
@@ -969,7 +970,7 @@ fhandler_console::input_tcsetattr (int, struct termios const *t)
flags &= ~ENABLE_ECHO_INPUT;
}
- if (t->c_lflag & ISIG)
+ if ((t->c_lflag & ISIG) && !(t->c_iflag & IGNBRK))
{
flags |= ENABLE_PROCESSED_INPUT;
}