source: chapter06/kbd.xml@ bdea25ce

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 bdea25ce was bdea25ce, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Indenting chapter 6, part 7

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

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