This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hello, I'm suggesting the following patch wich allows keyboard modifiers (CTRL, SHIFT, ALT) to be retrieved by applications that might need them using an ioctl command - MC is one of them. I don't really care if the name used will be TIOCLINUX, I am open to suggestions what the proper name might for the ioctl control code should be. In fact I have coded an alternative patch that uses cygwin_internal () to retrieve the data but I dont feel too comfortable with it since it seems too Cygwin specific - in any case I prefer the ioctl way of doing things but as I said I have an alternative just in case. The attached patch is pretty much non-intrusive, while the one employing cygwin_internal () adds a new member to the tty_min structure thus changing the shared memory footprint and I consider it too intrusive. Please, review and share your thoughts :) 2003-08-01 Pavel Tsekov <ptsekov@gmx.net> * 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. -- COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test -------------------------------------------------- 1. GMX TopMail - Platz 1 und Testsieger! 2. GMX ProMail - Platz 2 und Preis-Qualitätssieger! 3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post
Attachment:
tioclinux.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |