Messages in this thread | | | Date | Sat, 5 Dec 1998 14:02:06 +0100 | From | Pavel Machek <> | Subject | Re: mediumraw keyboard mode? |
| |
Hi!
> The normal level of reading keystrokes is read(0,&c,1), but this does not > let us see the F-keys, arrow keys, editing keys, etc, nor distinguish the > numeric keypad digits from the top-rank digits. (Well, it lets us "see" > these keys, but only through the keymap, in which a single key press might > emit in a string of several characters.) The point is, the application > has no way of knowing the user pressed (say) the F7 key, Alt-x, Shift-Insert, > Ctrl-Page-Up, etc.
Oh yes, you get ^[[18~ for F7 and you get ^[x for Alt-x. And you generaly do not want to know about other combinations ;-). Biggest problem is that you want telnet and xterm working.
Pavel -- I'm really pavel@atrey.karlin.mff.cuni.cz. Pavel Look at http://atrey.karlin.mff.cuni.cz/~pavel/ ;-).
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |