| @@ -1,208 +1,208 @@ | | | @@ -1,208 +1,208 @@ |
1 | .\" $NetBSD: wsconsctl.8,v 1.28.42.1 2020/07/13 14:22:47 martin Exp $ | | 1 | .\" $NetBSD: wsconsctl.8,v 1.28.42.2 2020/07/18 14:53:35 martin Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 1998, 2004 The NetBSD Foundation, Inc. | | 3 | .\" Copyright (c) 1998, 2004 The NetBSD Foundation, Inc. |
4 | .\" All rights reserved. | | 4 | .\" All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" This code is derived from software contributed to The NetBSD Foundation | | 6 | .\" This code is derived from software contributed to The NetBSD Foundation |
7 | .\" by Juergen Hannken-Illjes. | | 7 | .\" by Juergen Hannken-Illjes. |
8 | .\" | | 8 | .\" |
9 | .\" Redistribution and use in source and binary forms, with or without | | 9 | .\" Redistribution and use in source and binary forms, with or without |
10 | .\" modification, are permitted provided that the following conditions | | 10 | .\" modification, are permitted provided that the following conditions |
11 | .\" are met: | | 11 | .\" are met: |
12 | .\" 1. Redistributions of source code must retain the above copyright | | 12 | .\" 1. Redistributions of source code must retain the above copyright |
13 | .\" notice, this list of conditions and the following disclaimer. | | 13 | .\" notice, this list of conditions and the following disclaimer. |
14 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 14 | .\" 2. Redistributions in binary form must reproduce the above copyright |
15 | .\" notice, this list of conditions and the following disclaimer in the | | 15 | .\" notice, this list of conditions and the following disclaimer in the |
16 | .\" documentation and/or other materials provided with the distribution. | | 16 | .\" documentation and/or other materials provided with the distribution. |
17 | .\" | | 17 | .\" |
18 | .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS | | 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 | | 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 | | 20 | .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
21 | .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS | | 21 | .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS |
22 | .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | | 22 | .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
23 | .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | | 23 | .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
24 | .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | | 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 | | 25 | .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
26 | .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | | 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 | | 27 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
28 | .\" POSSIBILITY OF SUCH DAMAGE. | | 28 | .\" POSSIBILITY OF SUCH DAMAGE. |
29 | .\"/ | | 29 | .\"/ |
30 | +.Dd July 13, 2020 | | 30 | .Dd July 13, 2020 |
31 | .Dt WSCONSCTL 8 | | 31 | .Dt WSCONSCTL 8 |
32 | .Os | | 32 | .Os |
33 | .Sh NAME | | 33 | .Sh NAME |
34 | .Nm wsconsctl | | 34 | .Nm wsconsctl |
35 | .Nd get or set wscons state | | 35 | .Nd get or set wscons state |
36 | .Sh SYNOPSIS | | 36 | .Sh SYNOPSIS |
37 | .Nm | | 37 | .Nm |
38 | .Op Fl dkmn | | 38 | .Op Fl dkmn |
39 | .Op Fl f Ar file | | 39 | .Op Fl f Ar file |
40 | .Fl a | | 40 | .Fl a |
41 | .Nm | | 41 | .Nm |
42 | .Op Fl dkmn | | 42 | .Op Fl dkmn |
43 | .Op Fl f Ar file | | 43 | .Op Fl f Ar file |
44 | .Ar name ... | | 44 | .Ar name ... |
45 | .Nm | | 45 | .Nm |
46 | .Op Fl dkmn | | 46 | .Op Fl dkmn |
47 | .Op Fl f Ar file | | 47 | .Op Fl f Ar file |
48 | .Fl w | | 48 | .Fl w |
49 | .Ar name Ns Li = Ns Ar value ... | | 49 | .Ar name Ns Li = Ns Ar value ... |
50 | .Nm | | 50 | .Nm |
51 | .Op Fl dkmn | | 51 | .Op Fl dkmn |
52 | .Op Fl f Ar file | | 52 | .Op Fl f Ar file |
53 | .Fl w | | 53 | .Fl w |
54 | .Ar name Ns Li += Ns Ar value ... | | 54 | .Ar name Ns Li += Ns Ar value ... |
55 | .Sh DESCRIPTION | | 55 | .Sh DESCRIPTION |
56 | The | | 56 | The |
57 | .Nm | | 57 | .Nm |
58 | command displays or sets various wscons system driver variables. | | 58 | command displays or sets various wscons system driver variables. |
59 | If a list of variables is present on the command line, then | | 59 | If a list of variables is present on the command line, then |
60 | .Nm | | 60 | .Nm |
61 | prints the current value of those variables for the specified device. | | 61 | prints the current value of those variables for the specified device. |
62 | .Bl -tag -width Ds | | 62 | .Bl -tag -width Ds |
63 | .It Fl a | | 63 | .It Fl a |
64 | Specify all variables for the device. | | 64 | Specify all variables for the device. |
65 | .It Fl d | | 65 | .It Fl d |
66 | Select the display portion of the device. | | 66 | Select the display portion of the device. |
67 | .It Fl f Ar file | | 67 | .It Fl f Ar file |
68 | Specify an alternative control device. | | 68 | Specify an alternative control device. |
69 | .It Fl k | | 69 | .It Fl k |
70 | Select the keyboard portion of the device (this is the default). | | 70 | Select the keyboard portion of the device (this is the default). |
71 | .It Fl m | | 71 | .It Fl m |
72 | Select the mouse portion of the device. | | 72 | Select the mouse portion of the device. |
73 | .It Fl n | | 73 | .It Fl n |
74 | Suppress the printing of the variable name in the output - | | 74 | Suppress the printing of the variable name in the output - |
75 | only the value will appear. | | 75 | only the value will appear. |
76 | .It Fl w | | 76 | .It Fl w |
77 | Set or modify the specified variables to the given values. | | 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 | | 78 | The value can be specified as either an absolute value, by using the |
79 | .Ql = | | 79 | .Ql = |
80 | symbol or as a relative value, by using the | | 80 | symbol or as a relative value, by using the |
81 | .Ql += | | 81 | .Ql += |
82 | symbol. | | 82 | symbol. |
83 | See the | | 83 | See the |
84 | .Sx EXAMPLES | | 84 | .Sx EXAMPLES |
85 | section for more details. | | 85 | section for more details. |
86 | .El | | 86 | .El |
87 | .Pp | | 87 | .Pp |
88 | The | | 88 | The |
89 | .Nm | | 89 | .Nm |
90 | utility can be used to view and modify aspects of the keyboard, | | 90 | utility can be used to view and modify aspects of the keyboard, |
91 | display, and mouse, using the standard, machine-independent | | 91 | display, and mouse, using the standard, machine-independent |
92 | workstation console device driver | | 92 | workstation console device driver |
93 | .Xr wscons 4 . | | 93 | .Xr wscons 4 . |
94 | .Pp | | 94 | .Pp |
95 | The keyboard type can be modified, the keyboard bell's pitch, | | 95 | The keyboard type can be modified, the keyboard bell's pitch, |
96 | period, and duration can be modified, the | | 96 | period, and duration can be modified, the |
97 | .Ar typematic | | 97 | .Ar typematic |
98 | value can be changed, and the keyboard encoding can be modified | | 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 | | 99 | to switch keys, should the user find a keyboard's default layout |
100 | difficult to use. | | 100 | difficult to use. |
101 | The keyboard types and other relevant definitions | | 101 | The keyboard types and other relevant definitions |
102 | can all be found in the | | 102 | can all be found in the |
103 | .Pa /usr/include/dev/wscons/wsksymdef.h | | 103 | .Pa /usr/include/dev/wscons/wsksymdef.h |
104 | file. | | 104 | file. |
105 | .Pp | | 105 | .Pp |
106 | The mouse types are defined in the | | 106 | The mouse types are defined in the |
107 | .Pa /usr/include/dev/wscons/wsconsio.h | | 107 | .Pa /usr/include/dev/wscons/wsconsio.h |
108 | file. | | 108 | file. |
109 | .Pp | | 109 | .Pp |
110 | The display types, height, width, depth (bits per pixel), color | | 110 | The display types, height, width, depth (bits per pixel), color |
111 | map size, and color map are defined in the | | 111 | map size, and color map are defined in the |
112 | .Pa /usr/include/dev/wscons/wsconsio.h | | 112 | .Pa /usr/include/dev/wscons/wsconsio.h |
113 | file. | | 113 | file. |
114 | There are also definitions relating to video control and cursor | | 114 | There are also definitions relating to video control and cursor |
115 | control, which are not applicable to all display types, and to text | | 115 | control, which are not applicable to all display types, and to text |
116 | emulation and graphics (mapped) modes. | | 116 | emulation and graphics (mapped) modes. |
117 | .Sh FILES | | 117 | .Sh FILES |
118 | .Bl -tag -width /dev/wsmouse | | 118 | .Bl -tag -width /dev/wsmouse |
119 | .It Pa /dev/wskbd | | 119 | .It Pa /dev/wskbd |
120 | keyboard control device | | 120 | keyboard control device |
121 | .It Pa /dev/wsmouse | | 121 | .It Pa /dev/wsmouse |
122 | mouse control device | | 122 | mouse control device |
123 | .It Pa /dev/ttyE0 | | 123 | .It Pa /dev/ttyE0 |
124 | display control device | | 124 | display control device |
125 | .El | | 125 | .El |
126 | .Sh EXAMPLES | | 126 | .Sh EXAMPLES |
127 | The following are just a few examples of | | 127 | The following are just a few examples of |
128 | .Nm | | 128 | .Nm |
129 | and its functionality. | | 129 | and its functionality. |
130 | .Pp | | 130 | .Pp |
131 | .Dl wsconsctl -w encoding=uk | | 131 | .Dl wsconsctl -w encoding=uk |
132 | .Pp | | 132 | .Pp |
133 | Set a UK keyboard encoding. | | 133 | Set a UK keyboard encoding. |
134 | For a full list of supported keyboard encodings, see | | 134 | For a full list of supported keyboard encodings, see |
135 | .Xr wskbd 4 . | | 135 | .Xr wskbd 4 . |
136 | .Pp | | 136 | .Pp |
137 | .Dl wsconsctl -w map+="keysym Caps_Lock = Control_L" | | 137 | .Dl wsconsctl -w map+="keysym Caps_Lock = Control_L" |
138 | .Pp | | 138 | .Pp |
139 | Modify the current keyboard encoding so that when the | | 139 | Modify the current keyboard encoding so that when the |
140 | .Ar Caps Lock | | 140 | .Ar Caps Lock |
141 | key is pressed, the same encoding sequence as | | 141 | key is pressed, the same encoding sequence as |
142 | .Ar Left Control | | 142 | .Ar Left Control |
143 | is sent. | | 143 | is sent. |
144 | For a full list of keysyms and keycodes, please refer to the | | 144 | For a full list of keysyms and keycodes, please refer to the |
145 | .Pa /usr/include/dev/wscons/wsksymdef.h | | 145 | .Pa /usr/include/dev/wscons/wsksymdef.h |
146 | file. | | 146 | file. |
147 | .Pp | | 147 | .Pp |
148 | .Dl wsconsctl -w encoding=us.swapctrlcaps | | 148 | .Dl wsconsctl -w encoding=us.swapctrlcaps |
149 | .Pp | | 149 | .Pp |
150 | Set a US keyboard encoding, with the | | 150 | Set a US keyboard encoding, with the |
151 | .Ar Caps Lock | | 151 | .Ar Caps Lock |
152 | and | | 152 | and |
153 | .Ar Left Control | | 153 | .Ar Left Control |
154 | keys swapped. | | 154 | keys swapped. |
155 | The | | 155 | The |
156 | .Ar .swapctrlcaps | | 156 | .Ar .swapctrlcaps |
157 | encoding does not work for all national keyboard encodings. | | 157 | encoding does not work for all national keyboard encodings. |
158 | For most purposes, the ability to set the value returned by the | | 158 | For most purposes, the ability to set the value returned by the |
159 | .Ar Caps Lock | | 159 | .Ar Caps Lock |
160 | key is enough - see the previous example for details. | | 160 | key is enough - see the previous example for details. |
161 | .Pp | | 161 | .Pp |
162 | .Dl wsconsctl -w bell.pitch=1200 | | 162 | .Dl wsconsctl -w bell.pitch=1200 |
163 | .Pp | | 163 | .Pp |
164 | Set the bell pitch to be 1200. | | 164 | Set the bell pitch to be 1200. |
165 | .Pp | | 165 | .Pp |
166 | .Dl wsconsctl -w bell.pitch+=200 | | 166 | .Dl wsconsctl -w bell.pitch+=200 |
167 | .Pp | | 167 | .Pp |
168 | Add 200 to the current pitch of the bell. | | 168 | Add 200 to the current pitch of the bell. |
169 | .Pp | | 169 | .Pp |
170 | .Dl wsconsctl -d -w msg.kernel.attrs=color,hilit msg.kernel.bg=red msg.kernel.fg=brown | | 170 | .Dl wsconsctl -d -w msg.kernel.attrs=color,hilit msg.kernel.bg=red msg.kernel.fg=brown |
171 | .Pp | | 171 | .Pp |
172 | Set the color of kernel messages to brown on red with the highlighting | | 172 | Set the color of kernel messages to brown on red with the highlighting |
173 | flag set (becoming yellow on red). | | 173 | flag set (becoming yellow on red). |
174 | .Pp | | 174 | .Pp |
175 | .Dl wsconsctl -w repeat.del1=200 repeat.deln=50 | | 175 | .Dl wsconsctl -w repeat.del1=200 repeat.deln=50 |
176 | .Pp | | 176 | .Pp |
177 | Set the initial delay for keyboard auto repeat to 200ms, and subsequent | | 177 | Set the initial delay for keyboard auto repeat to 200ms, and subsequent |
178 | delays to 50ms. | | 178 | delays to 50ms. |
179 | .Pp | | 179 | .Pp |
180 | .Dl wsconsctl -w repeat.del1=0 | | 180 | .Dl wsconsctl -w repeat.del1=0 |
181 | .Pp | | 181 | .Pp |
182 | Turn off auto repeat. | | 182 | Turn off auto repeat. |
183 | .Pp | | 183 | .Pp |
184 | .Dl wsconsctl -d -w scroll.fastlines=50 | | 184 | .Dl wsconsctl -d -w scroll.fastlines=50 |
185 | .Pp | | 185 | .Pp |
186 | If scroll support is enabled in the kernel, set the number of lines | | 186 | If scroll support is enabled in the kernel, set the number of lines |
187 | used in the fast scroll function to 50. | | 187 | used in the fast scroll function to 50. |
188 | .Pp | | 188 | .Pp |
189 | .Dl wsconsctl -d -w scroll.slowlines=2 | | 189 | .Dl wsconsctl -d -w scroll.slowlines=2 |
190 | .Pp | | 190 | .Pp |
191 | If scroll support is enabled in the kernel, set the number of lines | | 191 | If scroll support is enabled in the kernel, set the number of lines |
192 | used in the slow scroll function to 2. | | 192 | used in the slow scroll function to 2. |
193 | In order to use this function, you have to have | | 193 | In order to use this function, you have to have |
194 | .Dv Cmd_ScrollSlowDown | | 194 | .Dv Cmd_ScrollSlowDown |
195 | and | | 195 | and |
196 | .Dv Cmd_ScrollSlowUp | | 196 | .Dv Cmd_ScrollSlowUp |
197 | defined in your keyboard map. | | 197 | defined in your keyboard map. |
198 | .Sh SEE ALSO | | 198 | .Sh SEE ALSO |
199 | .Xr wscons 4 , | | 199 | .Xr wscons 4 , |
200 | .Xr wskbd 4 , | | 200 | .Xr wskbd 4 , |
201 | .Xr wscons.conf 5 , | | 201 | .Xr wscons.conf 5 , |
202 | .Xr wsconscfg 8 , | | 202 | .Xr wsconscfg 8 , |
203 | .Xr wsfontload 8 | | 203 | .Xr wsfontload 8 |
204 | .Sh HISTORY | | 204 | .Sh HISTORY |
205 | The | | 205 | The |
206 | .Nm | | 206 | .Nm |
207 | command first appeared in | | 207 | command first appeared in |
208 | .Nx 1.4 . | | 208 | .Nx 1.4 . |