source: chapter08/kbd.xml@ 26c54f9e

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 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 26c54f9e was 26c54f9e, checked in by Xi Ruoyao <xry111@…>, 4 years ago

kbd: remove libtswrap

Upstream says it is internal, and shouldn't be installed.

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

  • Property mode set to 100644
File size: 13.7 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, console fonts, and keyboard
27 utilities.</para>
28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
34 <seg>&kbd-fin-sbu;</seg>
35 <seg>&kbd-fin-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of Kbd</title>
43
44 <para>The behaviour of the backspace and delete keys is not consistent
45 across the keymaps in the Kbd package. The following patch fixes this
46 issue for i386 keymaps:</para>
47
48<screen><userinput remap="pre">patch -Np1 -i ../&kbd-backspace-patch;</userinput></screen>
49
50 <para>After patching, the backspace key generates the character with code 127,
51 and the delete key generates a well-known escape sequence.</para>
52
53 <para>Remove the redundant <command>resizecons</command> program (it requires
54 the defunct svgalib to provide the video mode files - for normal use
55 <command>setfont</command> sizes the console appropriately) together with its
56 manpage.</para>
57
58<screen><userinput remap="pre">sed -i '/RESIZECONS_PROGS=/s/yes/no/' configure
59sed -i 's/resizecons.8 //' docs/man/man8/Makefile.in</userinput></screen>
60
61 <para>Prepare Kbd for compilation:</para>
62
63<screen><userinput remap="configure">./configure --prefix=/usr --disable-vlock</userinput></screen>
64
65 <variablelist>
66 <title>The meaning of the configure option:</title>
67
68 <varlistentry>
69 <term><parameter>--disable-vlock</parameter></term>
70 <listitem>
71 <para>This option prevents the vlock utility from being built because it
72 requires the PAM library, which isn't available in the chroot
73 environment.</para>
74 </listitem>
75 </varlistentry>
76
77 </variablelist>
78
79 <para>Compile the package:</para>
80
81<screen><userinput remap="make">make</userinput></screen>
82
83 <para>To test the results, issue:</para>
84
85<screen><userinput remap="test">make check</userinput></screen>
86
87 <para>Install the package:</para>
88
89<screen><userinput remap="install">make install</userinput></screen>
90
91 <para>Remove an internal library installed unintentionally:</para>
92
93<screen><userinput remap="install">rm -v /usr/lib/libtswrap.{a,la,so*}</userinput></screen>
94
95 <note>
96 <para>For some languages (e.g., Belarusian) the Kbd package doesn't
97 provide a useful keymap where the stock <quote>by</quote> keymap assumes
98 the ISO-8859-5 encoding, and the CP1251 keymap is normally used. Users of
99 such languages have to download working keymaps separately.</para>
100 </note>
101
102 <para>If desired, install the documentation:</para>
103
104<screen><userinput remap="install">mkdir -v /usr/share/doc/kbd-&kbd-version;
105cp -R -v docs/doc/* /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 <segtitle>Installed directories</segtitle>
115
116 <seglistitem>
117 <seg>chvt, deallocvt, dumpkeys, fgconsole, getkeycodes, kbdinfo,
118 kbd_mode, kbdrate, loadkeys, loadunimap,
119 mapscrn, openvt, psfaddtable (link to psfxtable), psfgettable (link to
120 psfxtable), psfstriptable (link to psfxtable), psfxtable, <!--resizecons,-->
121 setfont, setkeycodes, setleds, setmetamode, setvtrgb,
122 showconsolefont, showkey, unicode_start, and unicode_stop</seg>
123 <seg>/usr/share/consolefonts, /usr/share/consoletrans, /usr/share/keymaps,
124 /usr/share/doc/kbd-&kbd-version;, and /usr/share/unimaps</seg>
125 </seglistitem>
126 </segmentedlist>
127
128 <variablelist>
129 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
130 <?dbfo list-presentation="list"?>
131 <?dbhtml list-presentation="table"?>
132
133 <varlistentry id="chvt">
134 <term><command>chvt</command></term>
135 <listitem>
136 <para>Changes the foreground virtual terminal</para>
137 <indexterm zone="ch-system-kbd chvt">
138 <primary sortas="b-chvt">chvt</primary>
139 </indexterm>
140 </listitem>
141 </varlistentry>
142
143 <varlistentry id="deallocvt">
144 <term><command>deallocvt</command></term>
145 <listitem>
146 <para>Deallocates unused virtual terminals</para>
147 <indexterm zone="ch-system-kbd deallocvt">
148 <primary sortas="b-deallocvt">deallocvt</primary>
149 </indexterm>
150 </listitem>
151 </varlistentry>
152
153 <varlistentry id="dumpkeys">
154 <term><command>dumpkeys</command></term>
155 <listitem>
156 <para>Dumps the keyboard translation tables</para>
157 <indexterm zone="ch-system-kbd dumpkeys">
158 <primary sortas="b-dumpkeys">dumpkeys</primary>
159 </indexterm>
160 </listitem>
161 </varlistentry>
162
163 <varlistentry id="fgconsole">
164 <term><command>fgconsole</command></term>
165 <listitem>
166 <para>Prints the number of the active virtual terminal</para>
167 <indexterm zone="ch-system-kbd fgconsole">
168 <primary sortas="b-fgconsole">fgconsole</primary>
169 </indexterm>
170 </listitem>
171 </varlistentry>
172
173 <varlistentry id="getkeycodes">
174 <term><command>getkeycodes</command></term>
175 <listitem>
176 <para>Prints the kernel scancode-to-keycode mapping table</para>
177 <indexterm zone="ch-system-kbd getkeycodes">
178 <primary sortas="b-getkeycodes">getkeycodes</primary>
179 </indexterm>
180 </listitem>
181 </varlistentry>
182
183 <varlistentry id="kbdinfo">
184 <term><command>kbdinfo</command></term>
185 <listitem>
186 <para>Obtains information about the status of a console</para>
187 <indexterm zone="ch-system-kbd kbdinfo">
188 <primary sortas="b-kbdinfo">kbdinfo</primary>
189 </indexterm>
190 </listitem>
191 </varlistentry>
192
193 <varlistentry id="kbd_mode">
194 <term><command>kbd_mode</command></term>
195 <listitem>
196 <para>Reports or sets the keyboard mode</para>
197 <indexterm zone="ch-system-kbd kbd_mode">
198 <primary sortas="b-kbd_mode">kbd_mode</primary>
199 </indexterm>
200 </listitem>
201 </varlistentry>
202
203 <varlistentry id="kbdrate">
204 <term><command>kbdrate</command></term>
205 <listitem>
206 <para>Sets the keyboard repeat and delay rates</para>
207 <indexterm zone="ch-system-kbd kbdrate">
208 <primary sortas="b-kbdrate">kbdrate</primary>
209 </indexterm>
210 </listitem>
211 </varlistentry>
212
213 <varlistentry id="loadkeys">
214 <term><command>loadkeys</command></term>
215 <listitem>
216 <para>Loads the keyboard translation tables</para>
217 <indexterm zone="ch-system-kbd loadkeys">
218 <primary sortas="b-loadkeys">loadkeys</primary>
219 </indexterm>
220 </listitem>
221 </varlistentry>
222
223 <varlistentry id="loadunimap">
224 <term><command>loadunimap</command></term>
225 <listitem>
226 <para>Loads the kernel unicode-to-font mapping table</para>
227 <indexterm zone="ch-system-kbd loadunimap">
228 <primary sortas="b-loadunimap">loadunimap</primary>
229 </indexterm>
230 </listitem>
231 </varlistentry>
232
233 <varlistentry id="mapscrn">
234 <term><command>mapscrn</command></term>
235 <listitem>
236 <para>An obsolete program that used to load a user-defined output
237 character mapping table into the console driver; this is now done
238 by <command>setfont</command></para>
239 <indexterm zone="ch-system-kbd mapscrn">
240 <primary sortas="b-mapscrn">mapscrn</primary>
241 </indexterm>
242 </listitem>
243 </varlistentry>
244
245 <varlistentry id="openvt">
246 <term><command>openvt</command></term>
247 <listitem>
248 <para>Starts a program on a new virtual terminal (VT)</para>
249 <indexterm zone="ch-system-kbd openvt">
250 <primary sortas="b-openvt">openvt</primary>
251 </indexterm>
252 </listitem>
253 </varlistentry>
254
255 <varlistentry id="psfaddtable">
256 <term><command>psfaddtable</command></term>
257 <listitem>
258 <para>Adds a Unicode character table to a console font</para>
259 <indexterm zone="ch-system-kbd psfaddtable">
260 <primary sortas="b-psfaddtable">psfaddtable</primary>
261 </indexterm>
262 </listitem>
263 </varlistentry>
264
265 <varlistentry id="psfgettable">
266 <term><command>psfgettable</command></term>
267 <listitem>
268 <para>Extracts the embedded Unicode character table from a console
269 font</para>
270 <indexterm zone="ch-system-kbd psfgettable">
271 <primary sortas="b-psfgettable">psfgettable</primary>
272 </indexterm>
273 </listitem>
274 </varlistentry>
275
276 <varlistentry id="psfstriptable">
277 <term><command>psfstriptable</command></term>
278 <listitem>
279 <para>Removes the embedded Unicode character table from a console
280 font</para>
281 <indexterm zone="ch-system-kbd psfstriptable">
282 <primary sortas="b-psfstriptable">psfstriptable</primary>
283 </indexterm>
284 </listitem>
285 </varlistentry>
286
287 <varlistentry id="psfxtable">
288 <term><command>psfxtable</command></term>
289 <listitem>
290 <para>Handles Unicode character tables for console fonts</para>
291 <indexterm zone="ch-system-kbd psfxtable">
292 <primary sortas="b-psfxtable">psfxtable</primary>
293 </indexterm>
294 </listitem>
295 </varlistentry>
296
297 <varlistentry id="setfont">
298 <term><command>setfont</command></term>
299 <listitem>
300 <para>Changes the Enhanced Graphic Adapter (EGA) and Video Graphics
301 Array (VGA) fonts on the console</para>
302 <indexterm zone="ch-system-kbd setfont">
303 <primary sortas="b-setfont">setfont</primary>
304 </indexterm>
305 </listitem>
306 </varlistentry>
307
308 <varlistentry id="setkeycodes">
309 <term><command>setkeycodes</command></term>
310 <listitem>
311 <para>Loads kernel scancode-to-keycode mapping table entries; this is
312 useful if there are unusual keys on the keyboard</para>
313 <indexterm zone="ch-system-kbd setkeycodes">
314 <primary sortas="b-setkeycodes">setkeycodes</primary>
315 </indexterm>
316 </listitem>
317 </varlistentry>
318
319 <varlistentry id="setleds">
320 <term><command>setleds</command></term>
321 <listitem>
322 <para>Sets the keyboard flags and Light Emitting Diodes (LEDs)</para>
323 <indexterm zone="ch-system-kbd setleds">
324 <primary sortas="b-setleds">setleds</primary>
325 </indexterm>
326 </listitem>
327 </varlistentry>
328
329 <varlistentry id="setmetamode">
330 <term><command>setmetamode</command></term>
331 <listitem>
332 <para>Defines the keyboard meta-key handling</para>
333 <indexterm zone="ch-system-kbd setmetamode">
334 <primary sortas="b-setmetamode">setmetamode</primary>
335 </indexterm>
336 </listitem>
337 </varlistentry>
338
339 <varlistentry id="setvtrgb">
340 <term><command>setvtrgb</command></term>
341 <listitem>
342 <para>Sets the console color map in all virtual terminals</para>
343 <indexterm zone="ch-system-kbd setvtrgb">
344 <primary sortas="b-setvtrgb">setvtrgb</primary>
345 </indexterm>
346 </listitem>
347 </varlistentry>
348
349 <varlistentry id="showconsolefont">
350 <term><command>showconsolefont</command></term>
351 <listitem>
352 <para>Shows the current EGA/VGA console screen font</para>
353 <indexterm zone="ch-system-kbd showconsolefont">
354 <primary sortas="b-showconsolefont">showconsolefont</primary>
355 </indexterm>
356 </listitem>
357 </varlistentry>
358
359 <varlistentry id="showkey">
360 <term><command>showkey</command></term>
361 <listitem>
362 <para>Reports the scancodes, keycodes, and ASCII codes of the keys
363 pressed on the keyboard</para>
364 <indexterm zone="ch-system-kbd showkey">
365 <primary sortas="b-showkey">showkey</primary>
366 </indexterm>
367 </listitem>
368 </varlistentry>
369
370 <varlistentry id="unicode_start">
371 <term><command>unicode_start</command></term>
372 <listitem>
373 <para>Puts the keyboard and console in UNICODE mode [Don't use this
374 program unless your keymap file is in the ISO-8859-1 encoding. For
375 other encodings, this utility produces incorrect results.]</para>
376 <indexterm zone="ch-system-kbd unicode_start">
377 <primary sortas="b-unicode_start">unicode_start</primary>
378 </indexterm>
379 </listitem>
380 </varlistentry>
381
382 <varlistentry id="unicode_stop">
383 <term><command>unicode_stop</command></term>
384 <listitem>
385 <para>Reverts keyboard and console from UNICODE mode</para>
386 <indexterm zone="ch-system-kbd unicode_stop">
387 <primary sortas="b-unicode_stop">unicode_stop</primary>
388 </indexterm>
389 </listitem>
390 </varlistentry>
391
392 </variablelist>
393
394 </sect2>
395
396</sect1>
Note: See TracBrowser for help on using the repository browser.