1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
5 | %general-entities;
|
---|
6 | ]>
|
---|
7 |
|
---|
8 | <sect1 id="ch-system-kbd" role="wrap">
|
---|
9 | <?dbhtml filename="kbd.html"?>
|
---|
10 |
|
---|
11 | <sect1info condition="script">
|
---|
12 | <productname>kbd</productname>
|
---|
13 | <productnumber>&kbd-version;</productnumber>
|
---|
14 | <address>&kbd-url;</address>
|
---|
15 | </sect1info>
|
---|
16 |
|
---|
17 | <title>Kbd-&kbd-version;</title>
|
---|
18 |
|
---|
19 | <indexterm zone="ch-system-kbd">
|
---|
20 | <primary sortas="a-Kbd">Kbd</primary>
|
---|
21 | </indexterm>
|
---|
22 |
|
---|
23 | <sect2 role="package">
|
---|
24 | <title/>
|
---|
25 |
|
---|
26 | <para>The Kbd package contains key-table files, console fonts, and keyboard
|
---|
27 | utilities.</para>
|
---|
28 |
|
---|
29 | <segmentedlist>
|
---|
30 | <segtitle>&buildtime;</segtitle>
|
---|
31 | <segtitle>&diskspace;</segtitle>
|
---|
32 |
|
---|
33 | <seglistitem>
|
---|
34 | <seg>&kbd-fin-sbu;</seg>
|
---|
35 | <seg>&kbd-fin-du;</seg>
|
---|
36 | </seglistitem>
|
---|
37 | </segmentedlist>
|
---|
38 |
|
---|
39 | </sect2>
|
---|
40 |
|
---|
41 | <sect2 role="installation">
|
---|
42 | <title>Installation of Kbd</title>
|
---|
43 |
|
---|
44 | <para>The behavior of the backspace and delete keys is not consistent
|
---|
45 | across the keymaps in the Kbd package. The following patch fixes this
|
---|
46 | issue for i386 keymaps:</para>
|
---|
47 |
|
---|
48 | <note>
|
---|
49 | <para>
|
---|
50 | Don't skip the patch just because it mentions "i386". The keymaps
|
---|
51 | for the keyboards most common on the market (qwerty or dvorak) are
|
---|
52 | in "i386" catagory.
|
---|
53 | </para>
|
---|
54 | </note>
|
---|
55 |
|
---|
56 | <screen><userinput remap="pre">patch -Np1 -i ../&kbd-backspace-patch;</userinput></screen>
|
---|
57 |
|
---|
58 | <para>After patching, the backspace key generates the character with code 127,
|
---|
59 | and the delete key generates a well-known escape sequence.</para>
|
---|
60 |
|
---|
61 | <para>Remove the redundant <command>resizecons</command> program (it requires
|
---|
62 | the defunct svgalib to provide the video mode files - for normal use
|
---|
63 | <command>setfont</command> sizes the console appropriately) together with its
|
---|
64 | manpage.</para>
|
---|
65 |
|
---|
66 | <screen><userinput remap="pre">sed -i '/RESIZECONS_PROGS=/s/yes/no/' configure
|
---|
67 | sed -i 's/resizecons.8 //' docs/man/man8/Makefile.in</userinput></screen>
|
---|
68 |
|
---|
69 | <para>Prepare Kbd for compilation:</para>
|
---|
70 |
|
---|
71 | <screen><userinput remap="configure">./configure --prefix=/usr --disable-vlock</userinput></screen>
|
---|
72 |
|
---|
73 | <variablelist>
|
---|
74 | <title>The meaning of the configure option:</title>
|
---|
75 |
|
---|
76 | <varlistentry>
|
---|
77 | <term><parameter>--disable-vlock</parameter></term>
|
---|
78 | <listitem>
|
---|
79 | <para>This option prevents the vlock utility from being built because it
|
---|
80 | requires the PAM library, which isn't available in the chroot
|
---|
81 | environment.</para>
|
---|
82 | </listitem>
|
---|
83 | </varlistentry>
|
---|
84 |
|
---|
85 | </variablelist>
|
---|
86 |
|
---|
87 | <para>Compile the package:</para>
|
---|
88 |
|
---|
89 | <screen><userinput remap="make">make</userinput></screen>
|
---|
90 |
|
---|
91 | <para>To test the results, issue:</para>
|
---|
92 |
|
---|
93 | <screen><userinput remap="test">make check</userinput></screen>
|
---|
94 |
|
---|
95 | <para>Install the package:</para>
|
---|
96 |
|
---|
97 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
98 |
|
---|
99 | <note>
|
---|
100 | <para>For some languages (e.g., Belarusian) the Kbd package doesn't
|
---|
101 | provide a useful keymap where the stock <quote>by</quote> keymap assumes
|
---|
102 | the ISO-8859-5 encoding, and the CP1251 keymap is normally used. Users of
|
---|
103 | such languages have to download working keymaps separately.</para>
|
---|
104 | </note>
|
---|
105 |
|
---|
106 | <para>If desired, install the documentation:</para>
|
---|
107 |
|
---|
108 | <screen><userinput remap="install">cp -R -v docs/doc -T /usr/share/doc/kbd-&kbd-version;</userinput></screen>
|
---|
109 |
|
---|
110 | </sect2>
|
---|
111 |
|
---|
112 | <sect2 id="contents-kbd" role="content">
|
---|
113 | <title>Contents of Kbd</title>
|
---|
114 |
|
---|
115 | <segmentedlist>
|
---|
116 | <segtitle>Installed programs</segtitle>
|
---|
117 | <segtitle>Installed directories</segtitle>
|
---|
118 |
|
---|
119 | <seglistitem>
|
---|
120 | <seg>chvt, deallocvt, dumpkeys, fgconsole, getkeycodes, kbdinfo,
|
---|
121 | kbd_mode, kbdrate, loadkeys, loadunimap,
|
---|
122 | mapscrn, openvt, psfaddtable (link to psfxtable), psfgettable (link to
|
---|
123 | psfxtable), psfstriptable (link to psfxtable), psfxtable, <!--resizecons,-->
|
---|
124 | setfont, setkeycodes, setleds, setmetamode, setvtrgb,
|
---|
125 | showconsolefont, showkey, unicode_start, and unicode_stop</seg>
|
---|
126 | <seg>/usr/share/consolefonts, /usr/share/consoletrans, /usr/share/keymaps,
|
---|
127 | /usr/share/doc/kbd-&kbd-version;, and /usr/share/unimaps</seg>
|
---|
128 | </seglistitem>
|
---|
129 | </segmentedlist>
|
---|
130 |
|
---|
131 | <variablelist>
|
---|
132 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
133 | <?dbfo list-presentation="list"?>
|
---|
134 | <?dbhtml list-presentation="table"?>
|
---|
135 |
|
---|
136 | <varlistentry id="chvt">
|
---|
137 | <term><command>chvt</command></term>
|
---|
138 | <listitem>
|
---|
139 | <para>Changes the foreground virtual terminal</para>
|
---|
140 | <indexterm zone="ch-system-kbd chvt">
|
---|
141 | <primary sortas="b-chvt">chvt</primary>
|
---|
142 | </indexterm>
|
---|
143 | </listitem>
|
---|
144 | </varlistentry>
|
---|
145 |
|
---|
146 | <varlistentry id="deallocvt">
|
---|
147 | <term><command>deallocvt</command></term>
|
---|
148 | <listitem>
|
---|
149 | <para>Deallocates unused virtual terminals</para>
|
---|
150 | <indexterm zone="ch-system-kbd deallocvt">
|
---|
151 | <primary sortas="b-deallocvt">deallocvt</primary>
|
---|
152 | </indexterm>
|
---|
153 | </listitem>
|
---|
154 | </varlistentry>
|
---|
155 |
|
---|
156 | <varlistentry id="dumpkeys">
|
---|
157 | <term><command>dumpkeys</command></term>
|
---|
158 | <listitem>
|
---|
159 | <para>Dumps the keyboard translation tables</para>
|
---|
160 | <indexterm zone="ch-system-kbd dumpkeys">
|
---|
161 | <primary sortas="b-dumpkeys">dumpkeys</primary>
|
---|
162 | </indexterm>
|
---|
163 | </listitem>
|
---|
164 | </varlistentry>
|
---|
165 |
|
---|
166 | <varlistentry id="fgconsole">
|
---|
167 | <term><command>fgconsole</command></term>
|
---|
168 | <listitem>
|
---|
169 | <para>Prints the number of the active virtual terminal</para>
|
---|
170 | <indexterm zone="ch-system-kbd fgconsole">
|
---|
171 | <primary sortas="b-fgconsole">fgconsole</primary>
|
---|
172 | </indexterm>
|
---|
173 | </listitem>
|
---|
174 | </varlistentry>
|
---|
175 |
|
---|
176 | <varlistentry id="getkeycodes">
|
---|
177 | <term><command>getkeycodes</command></term>
|
---|
178 | <listitem>
|
---|
179 | <para>Prints the kernel scancode-to-keycode mapping table</para>
|
---|
180 | <indexterm zone="ch-system-kbd getkeycodes">
|
---|
181 | <primary sortas="b-getkeycodes">getkeycodes</primary>
|
---|
182 | </indexterm>
|
---|
183 | </listitem>
|
---|
184 | </varlistentry>
|
---|
185 |
|
---|
186 | <varlistentry id="kbdinfo">
|
---|
187 | <term><command>kbdinfo</command></term>
|
---|
188 | <listitem>
|
---|
189 | <para>Obtains information about the status of a console</para>
|
---|
190 | <indexterm zone="ch-system-kbd kbdinfo">
|
---|
191 | <primary sortas="b-kbdinfo">kbdinfo</primary>
|
---|
192 | </indexterm>
|
---|
193 | </listitem>
|
---|
194 | </varlistentry>
|
---|
195 |
|
---|
196 | <varlistentry id="kbd_mode">
|
---|
197 | <term><command>kbd_mode</command></term>
|
---|
198 | <listitem>
|
---|
199 | <para>Reports or sets the keyboard mode</para>
|
---|
200 | <indexterm zone="ch-system-kbd kbd_mode">
|
---|
201 | <primary sortas="b-kbd_mode">kbd_mode</primary>
|
---|
202 | </indexterm>
|
---|
203 | </listitem>
|
---|
204 | </varlistentry>
|
---|
205 |
|
---|
206 | <varlistentry id="kbdrate">
|
---|
207 | <term><command>kbdrate</command></term>
|
---|
208 | <listitem>
|
---|
209 | <para>Sets the keyboard repeat and delay rates</para>
|
---|
210 | <indexterm zone="ch-system-kbd kbdrate">
|
---|
211 | <primary sortas="b-kbdrate">kbdrate</primary>
|
---|
212 | </indexterm>
|
---|
213 | </listitem>
|
---|
214 | </varlistentry>
|
---|
215 |
|
---|
216 | <varlistentry id="loadkeys">
|
---|
217 | <term><command>loadkeys</command></term>
|
---|
218 | <listitem>
|
---|
219 | <para>Loads the keyboard translation tables</para>
|
---|
220 | <indexterm zone="ch-system-kbd loadkeys">
|
---|
221 | <primary sortas="b-loadkeys">loadkeys</primary>
|
---|
222 | </indexterm>
|
---|
223 | </listitem>
|
---|
224 | </varlistentry>
|
---|
225 |
|
---|
226 | <varlistentry id="loadunimap">
|
---|
227 | <term><command>loadunimap</command></term>
|
---|
228 | <listitem>
|
---|
229 | <para>Loads the kernel unicode-to-font mapping table</para>
|
---|
230 | <indexterm zone="ch-system-kbd loadunimap">
|
---|
231 | <primary sortas="b-loadunimap">loadunimap</primary>
|
---|
232 | </indexterm>
|
---|
233 | </listitem>
|
---|
234 | </varlistentry>
|
---|
235 |
|
---|
236 | <varlistentry id="mapscrn">
|
---|
237 | <term><command>mapscrn</command></term>
|
---|
238 | <listitem>
|
---|
239 | <para>An obsolete program that used to load a user-defined output
|
---|
240 | character mapping table into the console driver; this is now done
|
---|
241 | by <command>setfont</command></para>
|
---|
242 | <indexterm zone="ch-system-kbd mapscrn">
|
---|
243 | <primary sortas="b-mapscrn">mapscrn</primary>
|
---|
244 | </indexterm>
|
---|
245 | </listitem>
|
---|
246 | </varlistentry>
|
---|
247 |
|
---|
248 | <varlistentry id="openvt">
|
---|
249 | <term><command>openvt</command></term>
|
---|
250 | <listitem>
|
---|
251 | <para>Starts a program on a new virtual terminal (VT)</para>
|
---|
252 | <indexterm zone="ch-system-kbd openvt">
|
---|
253 | <primary sortas="b-openvt">openvt</primary>
|
---|
254 | </indexterm>
|
---|
255 | </listitem>
|
---|
256 | </varlistentry>
|
---|
257 |
|
---|
258 | <varlistentry id="psfaddtable">
|
---|
259 | <term><command>psfaddtable</command></term>
|
---|
260 | <listitem>
|
---|
261 | <para>Adds a Unicode character table to a console font</para>
|
---|
262 | <indexterm zone="ch-system-kbd psfaddtable">
|
---|
263 | <primary sortas="b-psfaddtable">psfaddtable</primary>
|
---|
264 | </indexterm>
|
---|
265 | </listitem>
|
---|
266 | </varlistentry>
|
---|
267 |
|
---|
268 | <varlistentry id="psfgettable">
|
---|
269 | <term><command>psfgettable</command></term>
|
---|
270 | <listitem>
|
---|
271 | <para>Extracts the embedded Unicode character table from a console
|
---|
272 | font</para>
|
---|
273 | <indexterm zone="ch-system-kbd psfgettable">
|
---|
274 | <primary sortas="b-psfgettable">psfgettable</primary>
|
---|
275 | </indexterm>
|
---|
276 | </listitem>
|
---|
277 | </varlistentry>
|
---|
278 |
|
---|
279 | <varlistentry id="psfstriptable">
|
---|
280 | <term><command>psfstriptable</command></term>
|
---|
281 | <listitem>
|
---|
282 | <para>Removes the embedded Unicode character table from a console
|
---|
283 | font</para>
|
---|
284 | <indexterm zone="ch-system-kbd psfstriptable">
|
---|
285 | <primary sortas="b-psfstriptable">psfstriptable</primary>
|
---|
286 | </indexterm>
|
---|
287 | </listitem>
|
---|
288 | </varlistentry>
|
---|
289 |
|
---|
290 | <varlistentry id="psfxtable">
|
---|
291 | <term><command>psfxtable</command></term>
|
---|
292 | <listitem>
|
---|
293 | <para>Handles Unicode character tables for console fonts</para>
|
---|
294 | <indexterm zone="ch-system-kbd psfxtable">
|
---|
295 | <primary sortas="b-psfxtable">psfxtable</primary>
|
---|
296 | </indexterm>
|
---|
297 | </listitem>
|
---|
298 | </varlistentry>
|
---|
299 |
|
---|
300 | <varlistentry id="setfont">
|
---|
301 | <term><command>setfont</command></term>
|
---|
302 | <listitem>
|
---|
303 | <para>Changes the Enhanced Graphic Adapter (EGA) and Video Graphics
|
---|
304 | Array (VGA) fonts on the console</para>
|
---|
305 | <indexterm zone="ch-system-kbd setfont">
|
---|
306 | <primary sortas="b-setfont">setfont</primary>
|
---|
307 | </indexterm>
|
---|
308 | </listitem>
|
---|
309 | </varlistentry>
|
---|
310 |
|
---|
311 | <varlistentry id="setkeycodes">
|
---|
312 | <term><command>setkeycodes</command></term>
|
---|
313 | <listitem>
|
---|
314 | <para>Loads kernel scancode-to-keycode mapping table entries; this is
|
---|
315 | useful if there are unusual keys on the keyboard</para>
|
---|
316 | <indexterm zone="ch-system-kbd setkeycodes">
|
---|
317 | <primary sortas="b-setkeycodes">setkeycodes</primary>
|
---|
318 | </indexterm>
|
---|
319 | </listitem>
|
---|
320 | </varlistentry>
|
---|
321 |
|
---|
322 | <varlistentry id="setleds">
|
---|
323 | <term><command>setleds</command></term>
|
---|
324 | <listitem>
|
---|
325 | <para>Sets the keyboard flags and Light Emitting Diodes (LEDs)</para>
|
---|
326 | <indexterm zone="ch-system-kbd setleds">
|
---|
327 | <primary sortas="b-setleds">setleds</primary>
|
---|
328 | </indexterm>
|
---|
329 | </listitem>
|
---|
330 | </varlistentry>
|
---|
331 |
|
---|
332 | <varlistentry id="setmetamode">
|
---|
333 | <term><command>setmetamode</command></term>
|
---|
334 | <listitem>
|
---|
335 | <para>Defines the keyboard meta-key handling</para>
|
---|
336 | <indexterm zone="ch-system-kbd setmetamode">
|
---|
337 | <primary sortas="b-setmetamode">setmetamode</primary>
|
---|
338 | </indexterm>
|
---|
339 | </listitem>
|
---|
340 | </varlistentry>
|
---|
341 |
|
---|
342 | <varlistentry id="setvtrgb">
|
---|
343 | <term><command>setvtrgb</command></term>
|
---|
344 | <listitem>
|
---|
345 | <para>Sets the console color map in all virtual terminals</para>
|
---|
346 | <indexterm zone="ch-system-kbd setvtrgb">
|
---|
347 | <primary sortas="b-setvtrgb">setvtrgb</primary>
|
---|
348 | </indexterm>
|
---|
349 | </listitem>
|
---|
350 | </varlistentry>
|
---|
351 |
|
---|
352 | <varlistentry id="showconsolefont">
|
---|
353 | <term><command>showconsolefont</command></term>
|
---|
354 | <listitem>
|
---|
355 | <para>Shows the current EGA/VGA console screen font</para>
|
---|
356 | <indexterm zone="ch-system-kbd showconsolefont">
|
---|
357 | <primary sortas="b-showconsolefont">showconsolefont</primary>
|
---|
358 | </indexterm>
|
---|
359 | </listitem>
|
---|
360 | </varlistentry>
|
---|
361 |
|
---|
362 | <varlistentry id="showkey">
|
---|
363 | <term><command>showkey</command></term>
|
---|
364 | <listitem>
|
---|
365 | <para>Reports the scancodes, keycodes, and ASCII codes of the keys
|
---|
366 | pressed on the keyboard</para>
|
---|
367 | <indexterm zone="ch-system-kbd showkey">
|
---|
368 | <primary sortas="b-showkey">showkey</primary>
|
---|
369 | </indexterm>
|
---|
370 | </listitem>
|
---|
371 | </varlistentry>
|
---|
372 |
|
---|
373 | <varlistentry id="unicode_start">
|
---|
374 | <term><command>unicode_start</command></term>
|
---|
375 | <listitem>
|
---|
376 | <para>Puts the keyboard and console in UNICODE mode [Don't use this
|
---|
377 | program unless your keymap file is in the ISO-8859-1 encoding. For
|
---|
378 | other encodings, this utility produces incorrect results.]</para>
|
---|
379 | <indexterm zone="ch-system-kbd unicode_start">
|
---|
380 | <primary sortas="b-unicode_start">unicode_start</primary>
|
---|
381 | </indexterm>
|
---|
382 | </listitem>
|
---|
383 | </varlistentry>
|
---|
384 |
|
---|
385 | <varlistentry id="unicode_stop">
|
---|
386 | <term><command>unicode_stop</command></term>
|
---|
387 | <listitem>
|
---|
388 | <para>Reverts keyboard and console from UNICODE mode</para>
|
---|
389 | <indexterm zone="ch-system-kbd unicode_stop">
|
---|
390 | <primary sortas="b-unicode_stop">unicode_stop</primary>
|
---|
391 | </indexterm>
|
---|
392 | </listitem>
|
---|
393 | </varlistentry>
|
---|
394 |
|
---|
395 | </variablelist>
|
---|
396 |
|
---|
397 | </sect2>
|
---|
398 |
|
---|
399 | </sect1>
|
---|