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 and keyboard utilities.</para>
|
---|
27 |
|
---|
28 | <segmentedlist>
|
---|
29 | <segtitle>&buildtime;</segtitle>
|
---|
30 | <segtitle>&diskspace;</segtitle>
|
---|
31 |
|
---|
32 | <seglistitem>
|
---|
33 | <seg>&kbd-ch6-sbu;</seg>
|
---|
34 | <seg>&kbd-ch6-du;</seg>
|
---|
35 | </seglistitem>
|
---|
36 | </segmentedlist>
|
---|
37 |
|
---|
38 | </sect2>
|
---|
39 |
|
---|
40 | <sect2 role="installation">
|
---|
41 | <title>Installation of Kbd</title>
|
---|
42 |
|
---|
43 | <para>The behaviour of the Backspace and Delete keys is not consistent
|
---|
44 | across the keymaps in the Kbd package. The following patch fixes this
|
---|
45 | issue for i386 keymaps:</para>
|
---|
46 |
|
---|
47 | <screen><userinput remap="pre">patch -Np1 -i ../&kbd-backspace-patch;</userinput></screen>
|
---|
48 |
|
---|
49 | <para>After patching, the Backspace key generates the character with code 127,
|
---|
50 | and the Delete key generates a well-known escape sequence.</para>
|
---|
51 |
|
---|
52 | <para>Prepare Kbd for compilation:</para>
|
---|
53 |
|
---|
54 | <screen><userinput remap="configure">./configure --prefix=/usr --datadir=/lib/kbd</userinput></screen>
|
---|
55 |
|
---|
56 | <variablelist>
|
---|
57 | <title>The meaning of the configure options:</title>
|
---|
58 |
|
---|
59 | <varlistentry>
|
---|
60 | <term><parameter>--datadir=/lib/kbd</parameter></term>
|
---|
61 | <listitem>
|
---|
62 | <para>This option puts keyboard layout data in a directory that will
|
---|
63 | always be on the root partition instead of the default <filename
|
---|
64 | class="directory">/usr/share/kbd</filename>.</para>
|
---|
65 | </listitem>
|
---|
66 | </varlistentry>
|
---|
67 |
|
---|
68 | </variablelist>
|
---|
69 |
|
---|
70 | <para>Compile the package:</para>
|
---|
71 |
|
---|
72 | <screen><userinput remap="make">make</userinput></screen>
|
---|
73 |
|
---|
74 | <para>This package does not come with a test suite.</para>
|
---|
75 |
|
---|
76 | <para>Install the package:</para>
|
---|
77 |
|
---|
78 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
79 |
|
---|
80 | <note>
|
---|
81 | <para>For some languages (e.g., Belarusian) the Kbd package doesn't
|
---|
82 | provide a useful keymap where the stock <quote>by</quote> keymap assumes
|
---|
83 | the ISO-8859-5 encoding, and the CP1251 keymap is normally used. Users of
|
---|
84 | such languages have to download working keymaps separately.</para>
|
---|
85 | </note>
|
---|
86 |
|
---|
87 | <para>Some of the scripts in the LFS-Bootscripts package depend on
|
---|
88 | <command>kbd_mode</command>, <command>loadkeys</command>,
|
---|
89 | <command>openvt</command>, and
|
---|
90 | <command>setfont</command>. As <filename class="directory">/usr</filename>
|
---|
91 | may not be available during the early stages of booting, those binaries
|
---|
92 | need to be on the root partition:</para>
|
---|
93 |
|
---|
94 | <screen><userinput remap="install">mv -v /usr/bin/{kbd_mode,loadkeys,openvt,setfont} /bin</userinput></screen>
|
---|
95 |
|
---|
96 | <para>If desired, install the documentation:</para>
|
---|
97 |
|
---|
98 | <screen><userinput remap="install">mkdir -v /usr/share/doc/kbd-&kbd-version;
|
---|
99 | cp -R -v doc/* \
|
---|
100 | /usr/share/doc/kbd-&kbd-version;</userinput></screen>
|
---|
101 |
|
---|
102 | </sect2>
|
---|
103 |
|
---|
104 | <sect2 id="contents-kbd" role="content">
|
---|
105 | <title>Contents of Kbd</title>
|
---|
106 |
|
---|
107 | <segmentedlist>
|
---|
108 | <segtitle>Installed programs</segtitle>
|
---|
109 |
|
---|
110 | <seglistitem>
|
---|
111 | <seg>chvt, deallocvt, dumpkeys, fgconsole, getkeycodes, kbd_mode,
|
---|
112 | kbdrate, loadkeys, loadunimap,
|
---|
113 | mapscrn, openvt, psfaddtable (link to psfxtable), psfgettable (link to
|
---|
114 | psfxtable), psfstriptable (link to psfxtable), psfxtable, resizecons,
|
---|
115 | setfont, setkeycodes, setleds, setmetamode,
|
---|
116 | showconsolefont, showkey, unicode_start, and unicode_stop</seg>
|
---|
117 | </seglistitem>
|
---|
118 | </segmentedlist>
|
---|
119 |
|
---|
120 | <variablelist>
|
---|
121 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
122 | <?dbfo list-presentation="list"?>
|
---|
123 | <?dbhtml list-presentation="table"?>
|
---|
124 |
|
---|
125 | <varlistentry id="chvt">
|
---|
126 | <term><command>chvt</command></term>
|
---|
127 | <listitem>
|
---|
128 | <para>Changes the foreground virtual terminal</para>
|
---|
129 | <indexterm zone="ch-system-kbd chvt">
|
---|
130 | <primary sortas="b-chvt">chvt</primary>
|
---|
131 | </indexterm>
|
---|
132 | </listitem>
|
---|
133 | </varlistentry>
|
---|
134 |
|
---|
135 | <varlistentry id="deallocvt">
|
---|
136 | <term><command>deallocvt</command></term>
|
---|
137 | <listitem>
|
---|
138 | <para>Deallocates unused virtual terminals</para>
|
---|
139 | <indexterm zone="ch-system-kbd deallocvt">
|
---|
140 | <primary sortas="b-deallocvt">deallocvt</primary>
|
---|
141 | </indexterm>
|
---|
142 | </listitem>
|
---|
143 | </varlistentry>
|
---|
144 |
|
---|
145 | <varlistentry id="dumpkeys">
|
---|
146 | <term><command>dumpkeys</command></term>
|
---|
147 | <listitem>
|
---|
148 | <para>Dumps the keyboard translation tables</para>
|
---|
149 | <indexterm zone="ch-system-kbd dumpkeys">
|
---|
150 | <primary sortas="b-dumpkeys">dumpkeys</primary>
|
---|
151 | </indexterm>
|
---|
152 | </listitem>
|
---|
153 | </varlistentry>
|
---|
154 |
|
---|
155 | <varlistentry id="fgconsole">
|
---|
156 | <term><command>fgconsole</command></term>
|
---|
157 | <listitem>
|
---|
158 | <para>Prints the number of the active virtual terminal</para>
|
---|
159 | <indexterm zone="ch-system-kbd fgconsole">
|
---|
160 | <primary sortas="b-fgconsole">fgconsole</primary>
|
---|
161 | </indexterm>
|
---|
162 | </listitem>
|
---|
163 | </varlistentry>
|
---|
164 |
|
---|
165 | <varlistentry id="getkeycodes">
|
---|
166 | <term><command>getkeycodes</command></term>
|
---|
167 | <listitem>
|
---|
168 | <para>Prints the kernel scancode-to-keycode mapping table</para>
|
---|
169 | <indexterm zone="ch-system-kbd getkeycodes">
|
---|
170 | <primary sortas="b-getkeycodes">getkeycodes</primary>
|
---|
171 | </indexterm>
|
---|
172 | </listitem>
|
---|
173 | </varlistentry>
|
---|
174 |
|
---|
175 | <varlistentry id="kbd_mode">
|
---|
176 | <term><command>kbd_mode</command></term>
|
---|
177 | <listitem>
|
---|
178 | <para>Reports or sets the keyboard mode</para>
|
---|
179 | <indexterm zone="ch-system-kbd kbd_mode">
|
---|
180 | <primary sortas="b-kbd_mode">kbd_mode</primary>
|
---|
181 | </indexterm>
|
---|
182 | </listitem>
|
---|
183 | </varlistentry>
|
---|
184 |
|
---|
185 | <varlistentry id="kbdrate">
|
---|
186 | <term><command>kbdrate</command></term>
|
---|
187 | <listitem>
|
---|
188 | <para>Sets the keyboard repeat and delay rates</para>
|
---|
189 | <indexterm zone="ch-system-kbd kbdrate">
|
---|
190 | <primary sortas="b-kbdrate">kbdrate</primary>
|
---|
191 | </indexterm>
|
---|
192 | </listitem>
|
---|
193 | </varlistentry>
|
---|
194 |
|
---|
195 | <varlistentry id="loadkeys">
|
---|
196 | <term><command>loadkeys</command></term>
|
---|
197 | <listitem>
|
---|
198 | <para>Loads the keyboard translation tables</para>
|
---|
199 | <indexterm zone="ch-system-kbd loadkeys">
|
---|
200 | <primary sortas="b-loadkeys">loadkeys</primary>
|
---|
201 | </indexterm>
|
---|
202 | </listitem>
|
---|
203 | </varlistentry>
|
---|
204 |
|
---|
205 | <varlistentry id="loadunimap">
|
---|
206 | <term><command>loadunimap</command></term>
|
---|
207 | <listitem>
|
---|
208 | <para>Loads the kernel unicode-to-font mapping table</para>
|
---|
209 | <indexterm zone="ch-system-kbd loadunimap">
|
---|
210 | <primary sortas="b-loadunimap">loadunimap</primary>
|
---|
211 | </indexterm>
|
---|
212 | </listitem>
|
---|
213 | </varlistentry>
|
---|
214 |
|
---|
215 | <varlistentry id="mapscrn">
|
---|
216 | <term><command>mapscrn</command></term>
|
---|
217 | <listitem>
|
---|
218 | <para>An obsolete program that used to load a user-defined output
|
---|
219 | character mapping table into the console driver; this is now done
|
---|
220 | by <command>setfont</command></para>
|
---|
221 | <indexterm zone="ch-system-kbd mapscrn">
|
---|
222 | <primary sortas="b-mapscrn">mapscrn</primary>
|
---|
223 | </indexterm>
|
---|
224 | </listitem>
|
---|
225 | </varlistentry>
|
---|
226 |
|
---|
227 | <varlistentry id="openvt">
|
---|
228 | <term><command>openvt</command></term>
|
---|
229 | <listitem>
|
---|
230 | <para>Starts a program on a new virtual terminal (VT)</para>
|
---|
231 | <indexterm zone="ch-system-kbd openvt">
|
---|
232 | <primary sortas="b-openvt">openvt</primary>
|
---|
233 | </indexterm>
|
---|
234 | </listitem>
|
---|
235 | </varlistentry>
|
---|
236 |
|
---|
237 | <varlistentry id="psfaddtable">
|
---|
238 | <term><command>psfaddtable</command></term>
|
---|
239 | <listitem>
|
---|
240 | <para>A link to <command>psfxtable</command></para>
|
---|
241 | <indexterm zone="ch-system-kbd psfaddtable">
|
---|
242 | <primary sortas="b-psfaddtable">psfaddtable</primary>
|
---|
243 | </indexterm>
|
---|
244 | </listitem>
|
---|
245 | </varlistentry>
|
---|
246 |
|
---|
247 | <varlistentry id="psfgettable">
|
---|
248 | <term><command>psfgettable</command></term>
|
---|
249 | <listitem>
|
---|
250 | <para>A link to <command>psfxtable</command></para>
|
---|
251 | <indexterm zone="ch-system-kbd psfgettable">
|
---|
252 | <primary sortas="b-psfgettable">psfgettable</primary>
|
---|
253 | </indexterm>
|
---|
254 | </listitem>
|
---|
255 | </varlistentry>
|
---|
256 |
|
---|
257 | <varlistentry id="psfstriptable">
|
---|
258 | <term><command>psfstriptable</command></term>
|
---|
259 | <listitem>
|
---|
260 | <para>A link to <command>psfxtable</command></para>
|
---|
261 | <indexterm zone="ch-system-kbd psfstriptable">
|
---|
262 | <primary sortas="b-psfstriptable">psfstriptable</primary>
|
---|
263 | </indexterm>
|
---|
264 | </listitem>
|
---|
265 | </varlistentry>
|
---|
266 |
|
---|
267 | <varlistentry id="psfxtable">
|
---|
268 | <term><command>psfxtable</command></term>
|
---|
269 | <listitem>
|
---|
270 | <para>Handle Unicode character tables for console fonts</para>
|
---|
271 | <indexterm zone="ch-system-kbd psfxtable">
|
---|
272 | <primary sortas="b-psfxtable">psfxtable</primary>
|
---|
273 | </indexterm>
|
---|
274 | </listitem>
|
---|
275 | </varlistentry>
|
---|
276 |
|
---|
277 | <varlistentry id="resizecons">
|
---|
278 | <term><command>resizecons</command></term>
|
---|
279 | <listitem>
|
---|
280 | <para>Changes the kernel idea of the console size</para>
|
---|
281 | <indexterm zone="ch-system-kbd resizecons">
|
---|
282 | <primary sortas="b-resizecons">resizecons</primary>
|
---|
283 | </indexterm>
|
---|
284 | </listitem>
|
---|
285 | </varlistentry>
|
---|
286 |
|
---|
287 | <varlistentry id="setfont">
|
---|
288 | <term><command>setfont</command></term>
|
---|
289 | <listitem>
|
---|
290 | <para>Changes the Enhanced Graphic Adapter (EGA) and Video Graphics
|
---|
291 | Array (VGA) fonts on the console</para>
|
---|
292 | <indexterm zone="ch-system-kbd setfont">
|
---|
293 | <primary sortas="b-setfont">setfont</primary>
|
---|
294 | </indexterm>
|
---|
295 | </listitem>
|
---|
296 | </varlistentry>
|
---|
297 |
|
---|
298 | <varlistentry id="setkeycodes">
|
---|
299 | <term><command>setkeycodes</command></term>
|
---|
300 | <listitem>
|
---|
301 | <para>Loads kernel scancode-to-keycode mapping table entries; this is
|
---|
302 | useful if there are unusual keys on the keyboard</para>
|
---|
303 | <indexterm zone="ch-system-kbd setkeycodes">
|
---|
304 | <primary sortas="b-setkeycodes">setkeycodes</primary>
|
---|
305 | </indexterm>
|
---|
306 | </listitem>
|
---|
307 | </varlistentry>
|
---|
308 |
|
---|
309 | <varlistentry id="setleds">
|
---|
310 | <term><command>setleds</command></term>
|
---|
311 | <listitem>
|
---|
312 | <para>Sets the keyboard flags and Light Emitting Diodes (LEDs)</para>
|
---|
313 | <indexterm zone="ch-system-kbd setleds">
|
---|
314 | <primary sortas="b-setleds">setleds</primary>
|
---|
315 | </indexterm>
|
---|
316 | </listitem>
|
---|
317 | </varlistentry>
|
---|
318 |
|
---|
319 | <varlistentry id="setmetamode">
|
---|
320 | <term><command>setmetamode</command></term>
|
---|
321 | <listitem>
|
---|
322 | <para>Defines the keyboard meta-key handling</para>
|
---|
323 | <indexterm zone="ch-system-kbd setmetamode">
|
---|
324 | <primary sortas="b-setmetamode">setmetamode</primary>
|
---|
325 | </indexterm>
|
---|
326 | </listitem>
|
---|
327 | </varlistentry>
|
---|
328 |
|
---|
329 | <varlistentry id="showconsolefont">
|
---|
330 | <term><command>showconsolefont</command></term>
|
---|
331 | <listitem>
|
---|
332 | <para>Shows the current EGA/VGA console screen font</para>
|
---|
333 | <indexterm zone="ch-system-kbd showconsolefont">
|
---|
334 | <primary sortas="b-showconsolefont">showconsolefont</primary>
|
---|
335 | </indexterm>
|
---|
336 | </listitem>
|
---|
337 | </varlistentry>
|
---|
338 |
|
---|
339 | <varlistentry id="showkey">
|
---|
340 | <term><command>showkey</command></term>
|
---|
341 | <listitem>
|
---|
342 | <para>Reports the scancodes, keycodes, and ASCII codes of the keys
|
---|
343 | pressed on the keyboard</para>
|
---|
344 | <indexterm zone="ch-system-kbd showkey">
|
---|
345 | <primary sortas="b-showkey">showkey</primary>
|
---|
346 | </indexterm>
|
---|
347 | </listitem>
|
---|
348 | </varlistentry>
|
---|
349 |
|
---|
350 | <varlistentry id="unicode_start">
|
---|
351 | <term><command>unicode_start</command></term>
|
---|
352 | <listitem>
|
---|
353 | <para>Puts the keyboard and console in UNICODE mode. Don't use this
|
---|
354 | program unless your keymap file is in the ISO-8859-1 encoding. For
|
---|
355 | other encodings, this utility produces incorrect results.</para>
|
---|
356 | <indexterm zone="ch-system-kbd unicode_start">
|
---|
357 | <primary sortas="b-unicode_start">unicode_start</primary>
|
---|
358 | </indexterm>
|
---|
359 | </listitem>
|
---|
360 | </varlistentry>
|
---|
361 |
|
---|
362 | <varlistentry id="unicode_stop">
|
---|
363 | <term><command>unicode_stop</command></term>
|
---|
364 | <listitem>
|
---|
365 | <para>Reverts keyboard and console from UNICODE mode</para>
|
---|
366 | <indexterm zone="ch-system-kbd unicode_stop">
|
---|
367 | <primary sortas="b-unicode_stop">unicode_stop</primary>
|
---|
368 | </indexterm>
|
---|
369 | </listitem>
|
---|
370 | </varlistentry>
|
---|
371 |
|
---|
372 | </variablelist>
|
---|
373 |
|
---|
374 | </sect2>
|
---|
375 |
|
---|
376 | </sect1>
|
---|