source: chapter06/kbd.xml@ 4e6c0c5

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.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 4e6c0c5 was 4e6c0c5, checked in by Jeremy Huntwork <jhuntwork@…>, 16 years ago

Updated Kbd to 1.14.1. Fixes #2162.

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

  • Property mode set to 100644
File size: 12.6 KB
Line 
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>openvt</command>, and
89 <command>setfont</command>. As <filename class="directory">/usr</filename>
90 may not be available during the early stages of booting, those binaries
91 need to be on the root partition:</para>
92
93<screen><userinput remap="install">mv -v /usr/bin/{kbd_mode,openvt,setfont} /bin</userinput></screen>
94
95 </sect2>
96
97 <sect2 id="contents-kbd" role="content">
98 <title>Contents of Kbd</title>
99
100 <segmentedlist>
101 <segtitle>Installed programs</segtitle>
102
103 <seglistitem>
104 <seg>chvt, deallocvt, dumpkeys, fgconsole, getkeycodes, kbd_mode,
105 kbdrate, loadkeys, loadunimap,
106 mapscrn, openvt, psfaddtable (link to psfxtable), psfgettable (link to
107 psfxtable), psfstriptable (link to psfxtable), psfxtable, resizecons,
108 setfont, setkeycodes, setleds, setmetamode,
109 showconsolefont, showkey, unicode_start, and unicode_stop</seg>
110 </seglistitem>
111 </segmentedlist>
112
113 <variablelist>
114 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
115 <?dbfo list-presentation="list"?>
116 <?dbhtml list-presentation="table"?>
117
118 <varlistentry id="chvt">
119 <term><command>chvt</command></term>
120 <listitem>
121 <para>Changes the foreground virtual terminal</para>
122 <indexterm zone="ch-system-kbd chvt">
123 <primary sortas="b-chvt">chvt</primary>
124 </indexterm>
125 </listitem>
126 </varlistentry>
127
128 <varlistentry id="deallocvt">
129 <term><command>deallocvt</command></term>
130 <listitem>
131 <para>Deallocates unused virtual terminals</para>
132 <indexterm zone="ch-system-kbd deallocvt">
133 <primary sortas="b-deallocvt">deallocvt</primary>
134 </indexterm>
135 </listitem>
136 </varlistentry>
137
138 <varlistentry id="dumpkeys">
139 <term><command>dumpkeys</command></term>
140 <listitem>
141 <para>Dumps the keyboard translation tables</para>
142 <indexterm zone="ch-system-kbd dumpkeys">
143 <primary sortas="b-dumpkeys">dumpkeys</primary>
144 </indexterm>
145 </listitem>
146 </varlistentry>
147
148 <varlistentry id="fgconsole">
149 <term><command>fgconsole</command></term>
150 <listitem>
151 <para>Prints the number of the active virtual terminal</para>
152 <indexterm zone="ch-system-kbd fgconsole">
153 <primary sortas="b-fgconsole">fgconsole</primary>
154 </indexterm>
155 </listitem>
156 </varlistentry>
157
158 <varlistentry id="getkeycodes">
159 <term><command>getkeycodes</command></term>
160 <listitem>
161 <para>Prints the kernel scancode-to-keycode mapping table</para>
162 <indexterm zone="ch-system-kbd getkeycodes">
163 <primary sortas="b-getkeycodes">getkeycodes</primary>
164 </indexterm>
165 </listitem>
166 </varlistentry>
167
168 <varlistentry id="kbd_mode">
169 <term><command>kbd_mode</command></term>
170 <listitem>
171 <para>Reports or sets the keyboard mode</para>
172 <indexterm zone="ch-system-kbd kbd_mode">
173 <primary sortas="b-kbd_mode">kbd_mode</primary>
174 </indexterm>
175 </listitem>
176 </varlistentry>
177
178 <varlistentry id="kbdrate">
179 <term><command>kbdrate</command></term>
180 <listitem>
181 <para>Sets the keyboard repeat and delay rates</para>
182 <indexterm zone="ch-system-kbd kbdrate">
183 <primary sortas="b-kbdrate">kbdrate</primary>
184 </indexterm>
185 </listitem>
186 </varlistentry>
187
188 <varlistentry id="loadkeys">
189 <term><command>loadkeys</command></term>
190 <listitem>
191 <para>Loads the keyboard translation tables</para>
192 <indexterm zone="ch-system-kbd loadkeys">
193 <primary sortas="b-loadkeys">loadkeys</primary>
194 </indexterm>
195 </listitem>
196 </varlistentry>
197
198 <varlistentry id="loadunimap">
199 <term><command>loadunimap</command></term>
200 <listitem>
201 <para>Loads the kernel unicode-to-font mapping table</para>
202 <indexterm zone="ch-system-kbd loadunimap">
203 <primary sortas="b-loadunimap">loadunimap</primary>
204 </indexterm>
205 </listitem>
206 </varlistentry>
207
208 <varlistentry id="mapscrn">
209 <term><command>mapscrn</command></term>
210 <listitem>
211 <para>An obsolete program that used to load a user-defined output
212 character mapping table into the console driver; this is now done
213 by <command>setfont</command></para>
214 <indexterm zone="ch-system-kbd mapscrn">
215 <primary sortas="b-mapscrn">mapscrn</primary>
216 </indexterm>
217 </listitem>
218 </varlistentry>
219
220 <varlistentry id="openvt">
221 <term><command>openvt</command></term>
222 <listitem>
223 <para>Starts a program on a new virtual terminal (VT)</para>
224 <indexterm zone="ch-system-kbd openvt">
225 <primary sortas="b-openvt">openvt</primary>
226 </indexterm>
227 </listitem>
228 </varlistentry>
229
230 <varlistentry id="psfaddtable">
231 <term><command>psfaddtable</command></term>
232 <listitem>
233 <para>A link to <command>psfxtable</command></para>
234 <indexterm zone="ch-system-kbd psfaddtable">
235 <primary sortas="b-psfaddtable">psfaddtable</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
240 <varlistentry id="psfgettable">
241 <term><command>psfgettable</command></term>
242 <listitem>
243 <para>A link to <command>psfxtable</command></para>
244 <indexterm zone="ch-system-kbd psfgettable">
245 <primary sortas="b-psfgettable">psfgettable</primary>
246 </indexterm>
247 </listitem>
248 </varlistentry>
249
250 <varlistentry id="psfstriptable">
251 <term><command>psfstriptable</command></term>
252 <listitem>
253 <para>A link to <command>psfxtable</command></para>
254 <indexterm zone="ch-system-kbd psfstriptable">
255 <primary sortas="b-psfstriptable">psfstriptable</primary>
256 </indexterm>
257 </listitem>
258 </varlistentry>
259
260 <varlistentry id="psfxtable">
261 <term><command>psfxtable</command></term>
262 <listitem>
263 <para>Handle Unicode character tables for console fonts</para>
264 <indexterm zone="ch-system-kbd psfxtable">
265 <primary sortas="b-psfxtable">psfxtable</primary>
266 </indexterm>
267 </listitem>
268 </varlistentry>
269
270 <varlistentry id="resizecons">
271 <term><command>resizecons</command></term>
272 <listitem>
273 <para>Changes the kernel idea of the console size</para>
274 <indexterm zone="ch-system-kbd resizecons">
275 <primary sortas="b-resizecons">resizecons</primary>
276 </indexterm>
277 </listitem>
278 </varlistentry>
279
280 <varlistentry id="setfont">
281 <term><command>setfont</command></term>
282 <listitem>
283 <para>Changes the Enhanced Graphic Adapter (EGA) and Video Graphics
284 Array (VGA) fonts on the console</para>
285 <indexterm zone="ch-system-kbd setfont">
286 <primary sortas="b-setfont">setfont</primary>
287 </indexterm>
288 </listitem>
289 </varlistentry>
290
291 <varlistentry id="setkeycodes">
292 <term><command>setkeycodes</command></term>
293 <listitem>
294 <para>Loads kernel scancode-to-keycode mapping table entries; this is
295 useful if there are unusual keys on the keyboard</para>
296 <indexterm zone="ch-system-kbd setkeycodes">
297 <primary sortas="b-setkeycodes">setkeycodes</primary>
298 </indexterm>
299 </listitem>
300 </varlistentry>
301
302 <varlistentry id="setleds">
303 <term><command>setleds</command></term>
304 <listitem>
305 <para>Sets the keyboard flags and Light Emitting Diodes (LEDs)</para>
306 <indexterm zone="ch-system-kbd setleds">
307 <primary sortas="b-setleds">setleds</primary>
308 </indexterm>
309 </listitem>
310 </varlistentry>
311
312 <varlistentry id="setmetamode">
313 <term><command>setmetamode</command></term>
314 <listitem>
315 <para>Defines the keyboard meta-key handling</para>
316 <indexterm zone="ch-system-kbd setmetamode">
317 <primary sortas="b-setmetamode">setmetamode</primary>
318 </indexterm>
319 </listitem>
320 </varlistentry>
321
322 <varlistentry id="showconsolefont">
323 <term><command>showconsolefont</command></term>
324 <listitem>
325 <para>Shows the current EGA/VGA console screen font</para>
326 <indexterm zone="ch-system-kbd showconsolefont">
327 <primary sortas="b-showconsolefont">showconsolefont</primary>
328 </indexterm>
329 </listitem>
330 </varlistentry>
331
332 <varlistentry id="showkey">
333 <term><command>showkey</command></term>
334 <listitem>
335 <para>Reports the scancodes, keycodes, and ASCII codes of the keys
336 pressed on the keyboard</para>
337 <indexterm zone="ch-system-kbd showkey">
338 <primary sortas="b-showkey">showkey</primary>
339 </indexterm>
340 </listitem>
341 </varlistentry>
342
343 <varlistentry id="unicode_start">
344 <term><command>unicode_start</command></term>
345 <listitem>
346 <para>Puts the keyboard and console in UNICODE mode. Don't use this
347 program unless your keymap file is in the ISO-8859-1 encoding. For
348 other encodings, this utility produces incorrect results.</para>
349 <indexterm zone="ch-system-kbd unicode_start">
350 <primary sortas="b-unicode_start">unicode_start</primary>
351 </indexterm>
352 </listitem>
353 </varlistentry>
354
355 <varlistentry id="unicode_stop">
356 <term><command>unicode_stop</command></term>
357 <listitem>
358 <para>Reverts keyboard and console from UNICODE mode</para>
359 <indexterm zone="ch-system-kbd unicode_stop">
360 <primary sortas="b-unicode_stop">unicode_stop</primary>
361 </indexterm>
362 </listitem>
363 </varlistentry>
364
365 </variablelist>
366
367 </sect2>
368
369</sect1>
Note: See TracBrowser for help on using the repository browser.