KBDMAP(5) | MidnightBSD File Formats Manual | KBDMAP(5) |
kbdmap
— keyboard
map file format for kbdcontrol
kbdmap |
A kbdmap
file describes how the keys on a
keyboard should behave. These files can be loaded using
kbdcontrol(1), or
kbdmap(1) can be used to
select one of the default kbdmap
files
interactively. A kbdmap
file can be specified in
rc.conf(5), to be loaded
at boot time. The current keymap may also be printed using
kbdcontrol(1).
Each line in the file can describe a key or an accent. A
‘#
’ character begins a comment, which
extends to the end of the line.
The description of a key begins with the scancode for that key. Then the effect of the key under combinations of shift, control and alt are listed in the following order: no modifier, shift, control, control and shift, alt, alt and shift, alt and control, alt and control and shift. The action of the key under each modifier can be:
-f
option of the
kbdcontrol(1)
utility to assign arbitrary strings to function keys.Finally, to complete the description of a key, a flag which
describes the effect of caps lock and num lock on that key is given. The
flag can be ‘C
’ to indicate that caps
lock affects the key, ‘N
’ to indicate
that num lock affects the key, ‘B
’ to
indicate that both caps lock and num lock affects the key, or
‘O
’ to indicate that neither affects
the key.
An accent key works by modifying the behavior of the next key pressed. The description of an accent begins with one of the accent names given above. This is followed by the symbol for the accent, given in single quotes or as a decimal or hexadecimal Unicode value. This symbol will be produced if the accent key is pressed and then the space key is pressed.
The description of the accent key continues with a list showing how it modifies various symbols, by giving pairs made up of the normal symbol and the modified symbol enclosed in parentheses. Both symbols in a pair can be given in either single quotes or as decimal or hexadecimal Unicode values.
For example, consider the following extract from a
kbdmap
:
041 dgra 172 nop nop '|' '|' nop nop O dgra '`' ( 'a' 224 ) ( 'A' 192 ) ( 'e' 232 ) ( 'E' 200 ) ( 'i' 236 ) ( 'I' 204 ) ( 'o' 242 ) ( 'O' 210 ) ( 'u' 249 ) ( 'U' 217 )
kbdcontrol(1), kbdmap(1), keyboard(4), syscons(4), vt(4), ascii(7)
This manual page first appeared in FreeBSD 4.2.
January 2, 2016 | midnightbsd-3.1 |