Technical data

kb(7M) STREAMS Modules SunOS 5.5
entry to be modified:
UPMASK 0x0080 “Key Up” translation table.
NUMLOCKMASK 0x0800
“Num Lock” translation table.
CTRLMASK 0x0030 “Controlled” translation table.
ALTGRAPHMASK 0x0200
“Alt Graph” translation table.
SHIFTMASK 0x000E “Shifted” translation table.
CAPSMASK 0x0001 “Caps Lock” translation table.
(No shift keys pressed or locked)
“Unshifted” translation table.
kio_station specifies the keystation code for the entry to be modified.
The value of kio_entry is stored in the entry in question. If kio_entry is
betweenSTRING and STRING+15, the string contained in kio_string is
copied to the appropriate string table entry. This call may return-
EINVAL
if there are invalid arguments.
There are a couple special values of kio_tablemask that affect the two
step “break to thePROM monitor” sequence. The usual sequence is L1a
or Stopa.If kio_tablemask is KIOCABORT1 then the value of
kio_station is set to be the first keystation in the sequence. If
kio_tablemask is KIOCABORT2 then the value of kio_station is set to be
the second keystation in the sequence.
KIOCGKEY The argument is a pointer to a kiockeymap structure. The current value
of the keyboard translation table entry specified by kio_tablemask and
kio_station is stored in the structure pointed to by the argument. This
call may return EINVAL if there are invalidarguments.
KIOCTYPE The argument is a pointer to an int. A code indicating the type of the
keyboard is stored in the int pointed to by the argument:
KB_SUN3 Sun Type 3 keyboard
KB_SUN4 Sun Type 4 keyboard
KB_ASCII ASCII terminal masquerading as keyboard
KB_DEFAULT is stored in the int pointed to by the argument, if the key-
board type is unknown. In case of error, -1 is stored in the int pointed to
by the argument.
KIOCLAYOUT The argument is a pointer to an int. On a Sun Type 4 keyboard, the lay-
out code specified by the keyboard’sDIP switches is stored in the int
pointed to by the argument.
KIOCCMD The argument is a pointer to an int. The command specified by the
value of the int pointed to by the argument is sent to the keyboard. The
commands that can be sent are:
Commands to the Sun Type 3 and Sun Type 4 keyboards:
7M-176 modified 27 Jan 1994