4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 .\" $FreeBSD: src/usr.sbin/kbdcontrol/kbdmap.5,v 1.1.2.4 2001/08/01 12:01:28 sheldonh Exp $
26 .\" $DragonFly: src/usr.sbin/kbdcontrol/kbdmap.5,v 1.2 2003/06/17 06:29:55 dillon Exp $
28 .Dd September 11, 2000
33 .Nd keyboard map file format for kbdcontrol
39 file describes how the keys on a keyboard should behave.
40 These files can be loaded
45 can be used to select one of the default
50 file can be specified in
54 The current keymap may also be printed using
58 can describe a key or an accent.
61 character begins a comment,
62 which extends to the end of the line.
64 The description of a key
65 begins with the scancode for that key.
66 Then the effect of the key
71 are listed in the following order:
79 alt and control and shift.
81 under each modifier can be:
83 .It ' Ns Ar symbol Ns No '
84 The symbol the key should produce,
93 For example, 32 for space.
98 as a hexadecimal number.
99 For example, 0x20 for space.
101 One of the standard names
141 By giving one of the accent names,
142 the next key pressed will produce
143 an accented character
144 in accordance with that accent.
145 See the description of accents below.
146 The accent names are:
171 Act as left shift key.
173 Act as right shift key.
175 Act as caps lock key.
179 Act as scroll lock key.
183 Act as backwards tab.
185 Act as left control key.
187 Act as right control key.
189 Act as right alt (altgr) key.
193 Act as alt shift key.
197 Act as left shift key / alt lock.
199 Act as right shift key / alt lock.
201 Act as left ctrl key / alt lock.
203 Act as right ctrl key / alt lock.
205 Act as left alt key / alt lock.
207 Act as right alt key / alt lock.
209 Act as switch to next screen.
211 Act as switch to previous screen.
224 and attempt to power it down.
228 Use APM to suspend power.
230 Activate screen saver
231 by toggling between splash/text screen.
237 to complete the description of a key,
238 a flag which describes
239 the effect of caps lock and num lock
240 on that key is given.
243 to indicate that caps lock affects the key,
245 to indicate that num lock affects the key,
247 to indicate that both
248 caps lock and num lock affects the key,
251 to indicate that neither affects the key.
254 by modifying the behavior
255 of the next key pressed.
256 The description of an accent begins
257 with one of the accent names
260 by the symbol for the accent,
261 given in single quotes or
262 as a decimal or hexadecimal
265 This symbol will be produced
266 if the accent key is pressed and
267 then the space key is pressed.
269 The description of the accent key
270 continues with a list showing
271 how it modifies various symbols,
272 by giving pairs made up of the normal symbol and
274 enclosed in parentheses.
275 Both symbols in a pair can be given
276 in either single quotes or
283 consider the following extract from a
285 .Bd -literal -offset indent
286 041 dgra 172 nop nop '|' '|' nop nop O
287 dgra '`' ( 'a' 224 ) ( 'A' 192 ) ( 'e' 232 ) ( 'E' 200 )
288 ( 'i' 236 ) ( 'I' 204 ) ( 'o' 242 ) ( 'O' 210 )
289 ( 'u' 249 ) ( 'U' 217 )
292 configures the backtick key on a UK keyboard
293 to act as a grave accent key.
294 Pressing backtick followed by space
295 produces a backtick, and
296 pressing a backtick followed by a vowel
297 produces the ISO-8859-1 symbol
298 for that vowel with a grave accent.
300 .Bl -tag -width /usr/share/syscons/keymaps/* -compact
301 .It Pa /usr/share/syscons/keymaps/*
302 standard keyboard map files
311 This manual page first appeared in