1 .\" $NetBSD: pckbd.4,v 1.18 2009/04/06 17:34:13 mkirby Exp $
4 .\" Matthias Drochner. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .Nd PC keyboard driver for wscons
36 .Cd "wskbd* at pckbd? console ?"
37 .Cd options PCKBD_LAYOUT=XXX
39 This driver supports PC/AT keyboards within the
41 console framework. It doesn't provide direct device
42 driver entry points but makes its functions available via
49 driver supports a number of different key mappings which
50 can be chosen from with the kernel option
52 at compile time or with the utility
57 Other mappings can be used if the whole keymap is replaced by means of
59 The builtin mappings are at this time:
60 .Bl -column " KB_US|KB_COLEMAK" "wsconsctl" "language"
61 .It Sy "option" Ta Sy "wsconsctl" Ta Sy "language"
62 .It Li KB_US Ta us Ta English/US keyboard mapping (default)
63 .It Li KB_DE Ta de Ta German with
65 .It Li KB_FR Ta fr Ta French
66 .It Li KB_DK Ta dk Ta Danish with
68 .It Li KB_IT Ta it Ta Italian
69 .It Li KB_UK Ta uk Ta British
70 .It Li KB_JP Ta jp Ta Japanese
71 .It Li KB_SV Ta sv Ta Swedish with
73 .It Li "KB_US|KB_DECLK" Ta \&us.declk Ta English/US mapping for Tn DEC
74 .It Ta Ta LK400-style keyboards with PC keyboard
75 .It Ta Ta interface (e.g., LK461)
76 .It Li "KB_US|KB_DVORAK" Ta us.dvorak Ta English/US keyboard with
77 .It Ta Ta Do Dvorak Dc layout
78 .It Li "KB_US|KB_COLEMAK" Ta us.colemak Ta English/US keyboard with
79 .It Ta Ta Do Colemak Dc layout
80 .It Li KB_NO Ta no Ta Norwegian with
82 .It Li KB_PT Ta pt Ta Portuguese
83 .It Li KB_ES Ta es Ta Spanish
84 .It Li KB_CZ Ta cz Ta Czech (QWERTY)
93 mappings can be used in the
96 variant. This switches off the
104 mappings can be modified
105 to swap the left CTRL and the CAPS LOCK keys by the
114 option can be applied to any layout. If set, keys pressed together
115 with the ALT modifier are prefixed by an ESC character. (Standard
116 behaviour is to add 128 to the ASCII value.)
118 Because PC keyboard hardware doesn't contain a beeper, requests for
120 cannot be handled directly. On alpha and i386 a helper device attached
123 driver allows the use of the standard ISA speaker for this purpose.
126 performs this function.
128 To set a German keyboard layout without
130 and sending an ESC character before the key symbol if the ALT
131 key is pressed simultaneously, use
132 .Ic wsconsctl Fl w Ar encoding=de.nodead.metaesc .
133 To set it at kernel build time, add
134 .D1 Cd options PCKBD_LAYOUT="(KB_DE | KB_NODEAD | KB_METAESC)"
135 to the kernel configuration file.
142 The list of builtin mappings doesn't follow any logic.
143 It grew as people submitted what they needed.