source: chapter06/kbd.xml@ 362600b8

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.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 362600b8 was 362600b8, checked in by Matthew Burgess <matthew@…>, 15 years ago

Upgrade to Kbd-1.15.1. Fixes #2501.

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

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