* 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.
This commit is contained in:
Corinna Vinschen 2011-07-05 18:01:13 +00:00
parent 3fe31f2633
commit 7616b79e0d
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2011-07-05 Corinna Vinschen <corinna@vinschen.de>
* 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.
2011-07-05 Corinna Vinschen <corinna@vinschen.de>
* security.cc (get_file_sd): Fix comment.

View File

@ -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 ? */