Geert Uytterhoeven writes:
> > When you have a tty open, the characters that you read from the device depend
> > on the mode that the VC is in. Eg, in RAW mode, you see the raw codes from
> > the keyboard. These (should be) untranslated, and may be architecture
> > specific (the "scancodes"). However, if the VC is in MEDIUM mode, you get
> ^^^^^^
> COOKED
We're both wrong - the modes are:
K_RAW
K_MEDIUMRAW
K_XLATE
K_UNICODE
in increasing levels of translation, but this is OT.
> Keycodes are bytes where the MSB indicates key up or down. For each keyboard
> event exactly one keycode is sent, while there may be multiple scancodes for a
> keyboard event (e.g. on PC, where extended keys are prefixed). On Amiga,
> keycode == scancode.
However, scancodes may not have any significance to the MSB.
_____
|_____| ------------------------------------------------- ---+---+-
| | Russell King rmk@arm.linux.org.uk --- ---
| | | | http://www.arm.linux.org.uk/~rmk/aboutme.html / / |
| +-+-+ --- -+-
/ | THE developer of ARM Linux |+| /|\
/ | | | --- |
+-+-+ ------------------------------------------------- /\\\ |
-
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/
This archive was generated by hypermail 2b29 : Fri Apr 07 2000 - 21:00:15 EST