* fhandler_console.c (fhandler_console::read): Record the state of the SHIFT,

CTRL and ALT keys at the time of the last keyboard input event.
(fhandler_console::ioctl): Handle requests to retrieve the keyboard modifiers
via the TIOCLINUX command.
* fhandler_tty.c (fhandler_tty_slave::read): Ditto.
* include/sys/termios.h (TIOCLINUX): New macro definition.
This commit is contained in:
Christopher Faylor
2003-09-27 02:36:50 +00:00
parent ecc28ff8db
commit 63726a5eb4
4 changed files with 54 additions and 2 deletions

View File

@ -330,5 +330,6 @@ struct winsize
#define TIOCGWINSZ (('T' << 8) | 1)
#define TIOCSWINSZ (('T' << 8) | 2)
#define TIOCLINUX (('T' << 8) | 3)
#endif /* _SYS_TERMIOS_H */