
kb(7M) STREAMS Modules SunOS 5.5
Controlled Used when a key is depressed and the Control key is being
held down (regardless of whether a Shift key or the Alt
Graph is being held down, or whether Caps Lock or Num
Lock is in effect).
Key Up Used when a key is released.
Each key on the keyboard has a “key station” code which is a number from 0 to 127. This
number is used as an index into the translation table that is currently in effect. If the
corresponding entry in that translation table is a value from 0 to 255, this value is treated
as an ISO 8859/1 character, and that character is the result of the translation.
If the entry is a value above 255, it is a “special” entry. Special entry values are classified
according to the value of the high-order bits. The high-order value for each class is
defined as a constant, as shown in the list below. The value of the low-order bits, when
added to this constant, distinguishesbetween keys within each class:
SHIFTKEYS 0x100 A shift key. The value of the particular shift key is added to deter-
mine which shift mask to apply:
CAPSLOCK 0 “Caps Lock” key.
SHIFTLOCK 1 “Shift Lock” key.
LEFTSHIFT 2 Left-hand “Shift” key.
RIGHTSHIFT 3 Right-hand “Shift” key.
LEFTCTRL 4 Left-hand (or only) “Control” key.
RIGHTCTRL 5 Right-hand “Control” key.
ALTGRAPH 9 “Alt Graph” key.
ALT 10 “Alternate” or “Alt” key.
NUMLOCK 11 “Num Lock” key.
BUCKYBITS 0x200 Used to toggle mode-key-up/down status without altering the
value of an accompanyingISO 8859/1 character. The actual bit-
position value, minus 7, is added.
METABIT 0 The “Meta” key was pressed along with the
key. This is the only user-accessible bucky
bit. It is ORed in as the 0x80 bit; since this
bit is a legitimate bit in a character, the only
way to distinguish between, for example,
0xA0 as META+0x20 and 0xA0 as an 8-bit
character is to watch for “META key up”
and “META key down” events and keep
track of whether theMETA key was down.
SYSTEMBIT 1 The “System” key was pressed. This is a
place holder to indicate which key is the
system-abort key.
7M-172 modified 27 Jan 1994
Comentários a estes Manuais