source: chapter06/kbd.xml@ e4a5635

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since e4a5635 was e4a5635, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Replaced "<" by "less than".

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7612 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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