|
These files are used by loadkeys(1) to modify the translation
tables used by the keyboard streams module and generated by (see loadkeys(1))
from those translation tables.
Any line in the file beginning with # is a comment, and is ignored. # is treated specially only at the beginning of a line.
Other lines specify the values to load into the tables for a particular keystation. The format is either:
|
key number list_of_entries
|
or
|
swap number1 with number2
|
or
|
key number1 same as number2
|
or a blank line, which is ignored.
|
key number list_of_entries
|
sets the entries for keystation number from the list given. An entry in that list is of the form
where tablename is the name of a particular translation table, or all. The translation tables are:
-
base
- entry when no shifts are active
-
shift
- entry when "Shift" key is down
-
caps
- entry when "Caps Lock" is in effect
-
ctrl
- entry when "Control" is down
-
altg
- entry when "Alt Graph" is down
-
numl
- entry when "Num Lock" is in effect
-
up
- entry when a key goes up
All tables other than up refer to the action generated when a key goes down. Entries in the up table are used only for shift keys, since the shift in question
goes away when the key goes up, except for keys such as "Caps Lock" or "Num Lock"; the keyboard streams module makes the key look as if it were a latching key.
A table name of all indicates that the entry for all tables should be set to the specified value, with the following exception: for entries with a value other than hole, the entry for the numl table should be set to nonl, and the entry for the up table should be set to nop.
The code specifies the effect of the key in question when the specified shift key is down. A code consists of either:
- A character, which indicates that the key should generate the given character. The character can either be a single character, a single character preceded by ^
which refers to a "control character" (for instance, ^c is control-C), or a C-style character constant enclosed in single quote characters ('), which can be expressed
with C-style escape sequences such as \r for RETURN or \000 for the null character. Note that the single character may be any character in an 8-bit character
set, such as ISO 8859/1.
- A string, consisting of a list of characters enclosed in double quote characters ("). Note that the use of the double quote character means that a code of double quote must be enclosed in single quotes.
- One of the following expressions:
-
shiftkeys+leftshift
- the key is to be the left-hand "Shift" key
-
shiftkeys+rightshift
- the key is to be the right-hand "Shift" key
-
shiftkeys+leftctrl
- the key is to be the left-hand "Control" key
-
shiftkeys+rightctrl
- the key is to be the right-hand "Control" key
-
shiftkeys+alt
- the key is to be the "Alt" shift key
-
shiftkeys+altgraph
- the key is to be the "Alt Graph" shift key
-
shiftkeys+capslock
- the key is to be the "Caps Lock" key
-
shiftkeys+shiftlock
- the key is to be the "Shift Lock" key
-
shiftkeys+numlock
- the key is to be the "Num Lock" key
-
buckybits+systembit
- the key is to be the "Stop" key in SunView; this is normally the L1 key, or the SETUP key on the VT100 keyboard
-
buckybits+metabit
- the key is to be the "meta" key. That is, the "Left" or "Right" key on a Sun-2 or Sun-3 keyboard or the "diamond" key on a
Sun-4 keyboard
-
compose
- the key is to be the "Compose" key
-
ctrlq
- on the "VT100" keyboard, the key is to transmit the control-Q character (this would be the entry for the "Q" key in the ctrl
table)
-
ctrls
- on the "VT100" keyboard, the key is to transmit the control-S character (this would be the entry for the "S" key in the ctrl
table)
-
noscroll
- on the "VT100" keyboard, the key is to be the "No Scroll" key
-
string+uparrow
- the key is to be the "up arrow" key
-
string+downarrow
- the key is to be the "down arrow" key
-
string+leftarrow
- the key is to be the "left arrow" key
-
string+rightarrow
- the key is to be the "right arrow" key
-
string+homearrow
- the key is to be the "home" key
-
fa_acute
- the key is to be the acute accent "floating accent" key
-
fa_cedilla
- the key is to be the cedilla "floating accent" key
-
fa_cflex
- the key is to be the circumflex "floating accent" key
-
fa_grave
- the key is to be the grave accent "floating accent" key
-
fa_tilde
- the key is to be the tilde "floating accent" key
-
fa_umlaut
- the key is to be the umlaut "floating accent" key
-
nonl
- this is used only in the Num Lock table; the key is not to be affected by the state of Num Lock
-
pad0
- the key is to be the "0" key on the numeric keypad
-
pad1
- the key is to be the "1" key on the numeric keypad
-
pad2
- the key is to be the "2" key on the numeric keypad
-
pad3
- the key is to be the "3" key on the numeric keypad
-
pad4
- the key is to be the "4" key on the numeric keypad
-
pad5
- the key is to be the "5" key on the numeric keypad
-
pad6
- the key is to be the "6" key on the numeric keypad
-
pad7
- the key is to be the "7" key on the numeric keypad
-
pad8
- the key is to be the "8" key on the numeric keypad
-
pad9
- the key is to be the "9" key on the numeric keypad
-
paddot
- the key is to be the "." key on the numeric keypad
-
padenter
- the key is to be the "Enter" key on the numeric keypad
-
padplus
- the key is to be the "+" key on the numeric keypad
-
padminus
- the key is to be the "-" key on the numeric keypad
-
padstar
- the key is to be the "*" key on the numeric keypad
-
padslash
- the key is to be the "/" key on the numeric keypad
-
padequal
- the key is to be the "=" key on the numeric keypad
-
padsep
- the key is to be the "," (separator) key on the numeric keypad
-
lf(n)
- the key is to be the left-hand function key n
-
rf(n)
- the key is to be the right-hand function key n
-
tf(n)
- the key is to be the top function key n
-
bf(n)
- the key is to be the "bottom" function key n
-
nop
- the key is to do nothing
-
error
- this code indicates an internal error; to be used only for keystation 126, and must be used there
-
idle
- this code indicates that the keyboard is idle (that is, has no keys down); to be used only for all entries other than the numl and up table entries for keystation 127, and must be used there
-
oops
- this key exists, but its action is not defined; it has the same effect as nop
-
reset
- this code indicates that the keyboard has just been reset; to be used only for the up table entry for keystation 127,
and must be used there.
-
swap number1 with number2
- exchanges the entries for keystations number1
and number2.
-
key number1 same as number2
- sets the entries for keystation number1
to be the same as those for keystation number2. If the file does not specify entries for keystation number2, the entries currently in the translation
table are used; if the file does specify entries for keystation number2, those entries are used.
|