1 .\" $NetBSD: wsconsctl.8,v 1.26 2008/11/29 05:52:32 jnemeth Exp $
3 .\" Copyright (c) 1998, 2004 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" This code is derived from software contributed to The NetBSD Foundation
7 .\" by Juergen Hannken-Illjes.
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\" notice, this list of conditions and the following disclaimer in the
16 .\" documentation and/or other materials provided with the distribution.
18 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 .\" POSSIBILITY OF SUCH DAMAGE.
35 .Nd get or set wscons state
49 .Ar name Ns Li = Ns Ar value ...
54 .Ar name Ns Li += Ns Ar value ...
58 command displays or sets various wscons system driver variables.
59 If a list of variables is present on the command line, then
61 prints the current value of those variables for the specified device.
64 Specify all variables for the device.
66 Select the display portion of the device.
68 Specify an alternative control device.
70 Select the keyboard portion of the device (this is the default).
72 Select the mouse portion of the device.
74 Suppress the printing of the variable name in the output -
75 only the value will appear.
77 Set or modify the specified variables to the given values.
78 The value can be specified as either an absolute value, by using the
80 symbol or as a relative value, by using the
85 section for more details.
90 utility can be used to view and modify aspects of the keyboard,
91 display, and mouse, using the standard, machine-independent
92 workstation console device driver
95 The keyboard type can be modified, the keyboard bell's pitch,
96 period, and duration can be modified, the
98 value can be changed, and the keyboard encoding can be modified
99 to switch keys, should the user find a keyboard's default layout
101 The keyboard types and other relevant definitions
102 can all be found in the
103 .Pa /usr/include/dev/wscons/wsksymdef.h
106 The mouse types are defined in the
107 .Pa /usr/include/dev/wscons/wsconsio.h
110 The display types, height, width, depth (bits per pixel), color
111 map size, and color map are defined in the
112 .Pa /usr/include/dev/wscons/wsconsio.h
114 There are also definitions relating to video control and cursor
115 control, which are not applicable to all display types, and to text
116 emulation and graphics (mapped) modes.
118 In addition to British, US, and US-Dvorak keyboard encodings, support
119 currently exists for the following languages: Belgian, Danish, Finnish,
120 French, German, Greek, Hungarian, Italian, Japanese, Norwegian, Polish,
121 Portugese, Russian, Spanish, Swedish, Swiss, and Ukrainian.
122 Additionally, a user-defined encoding is supported.
124 .Bl -tag -width /dev/wsmouse
126 keyboard control device
130 display control device
133 The following are just a few examples of
135 and its functionality.
137 .Dl wsconsctl -w encoding=uk
139 Set a UK keyboard encoding.
141 .Dl wsconsctl -w map+="keysym Caps_Lock = Control_L"
143 Modify the current keyboard encoding so that when the
145 key is pressed, the same encoding sequence as
148 For a full list of keysyms and keycodes, please refer to the
149 .Pa /usr/include/dev/wscons/wsksymdef.h
152 .Dl wsconsctl -w encoding=us.swapctrlcaps
154 Set a US keyboard encoding, with the
161 encoding does not work for all national keyboard encodings.
162 For most purposes, the ability to set the value returned by the
164 key is enough - see the previous example for details.
166 .Dl wsconsctl -w bell.pitch=1200
168 Set the bell pitch to be 1200.
170 .Dl wsconsctl -w bell.pitch+=200
172 Add 200 to the current pitch of the bell.
174 .Dl wsconsctl -d -w msg.kernel.attrs=color,hilit msg.kernel.bg=red msg.kernel.fg=brown
176 Set the color of kernel messages to brown on red with the highlighting
177 flag set (becoming yellow on red).
179 .Dl wsconsctl -w repeat.del1=200 repeat.deln=50
181 Set the initial delay for keyboard auto repeat to 200ms, and subsequent
184 .Dl wsconsctl -w repeat.del1=0
186 Turn off auto repeat.
188 .Dl wsconsctl -d -w scroll.fastlines=50
190 If scroll support is enabled in the kernel, set the number of lines
191 used in the fast scroll function to 50.
193 .Dl wsconsctl -d -w scroll.slowlines=2
195 If scroll support is enabled in the kernel, set the number of lines
196 used in the slow scroll function to 2.
197 In order to use this function, you have to have
198 .Dv Cmd_ScrollSlowDown
201 defined in your keyboard map.
211 command first appeared in