* fhandler_console.cc (fhandler_console::read): Add comment.

(fhandler_console::input_tcsetattr): Don't set ENABLE_PROCESSED_INPUT
	if IGNBRK flag is set.
This commit is contained in:
Corinna Vinschen 2011-06-30 13:55:57 +00:00
parent 9e1fd6bcf7
commit 4b626add7e
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2011-06-30 Corinna Vinschen <corinna@vinschen.de>
* fhandler_console.cc (fhandler_console::read): Add comment.
(fhandler_console::input_tcsetattr): Don't set ENABLE_PROCESSED_INPUT
if IGNBRK flag is set.
2011-06-30 Corinna Vinschen <corinna@vinschen.de> 2011-06-30 Corinna Vinschen <corinna@vinschen.de>
* dtable.cc (fh_oom): New static fhandler storage. * dtable.cc (fh_oom): New static fhandler storage.

View File

@ -441,6 +441,7 @@ restart:
if (control_key_state & LEFT_ALT_PRESSED) if (control_key_state & LEFT_ALT_PRESSED)
dev_state.nModifiers |= 8; dev_state.nModifiers |= 8;
/* Allow Backspace to emit ^? and escape sequences. */
if (input_rec.Event.KeyEvent.wVirtualScanCode == 14) if (input_rec.Event.KeyEvent.wVirtualScanCode == 14)
{ {
char c = dev_state.backspace_keycode; char c = dev_state.backspace_keycode;
@ -969,7 +970,7 @@ fhandler_console::input_tcsetattr (int, struct termios const *t)
flags &= ~ENABLE_ECHO_INPUT; flags &= ~ENABLE_ECHO_INPUT;
} }
if (t->c_lflag & ISIG) if ((t->c_lflag & ISIG) && !(t->c_iflag & IGNBRK))
{ {
flags |= ENABLE_PROCESSED_INPUT; flags |= ENABLE_PROCESSED_INPUT;
} }