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 | <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 |
---|
21 | utilities.</para> |
---|
22 | |
---|
23 | </sect2> |
---|
24 | |
---|
25 | <sect2 role="installation"> |
---|
26 | <title>Installation of Kbd</title> |
---|
27 | |
---|
28 | <para os="cc1">When Cross Compiling the configure script does not |
---|
29 | run a select few tests, Set the values manually:</para> |
---|
30 | |
---|
31 | <screen os="cc1"><userinput>cat > config.cache << EOF |
---|
32 | ac_cv_func_setpgrp_void=yes |
---|
33 | ac_cv_func_malloc_0_nonnull=yes |
---|
34 | ac_cv_func_realloc_0_nonnull=yes |
---|
35 | EOF</userinput></screen> |
---|
36 | |
---|
37 | <para os="a">Prepare Kbd for compilation:</para> |
---|
38 | |
---|
39 | <screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \ |
---|
40 | --prefix=/usr --cache-file=config.cache</userinput></screen> |
---|
41 | |
---|
42 | <para os="d">Compile the package:</para> |
---|
43 | |
---|
44 | <screen os="e"><userinput>make</userinput></screen> |
---|
45 | |
---|
46 | <para os="f">Install the package:</para> |
---|
47 | |
---|
48 | <screen os="g"><userinput>make DESTDIR=${CLFS} install</userinput></screen> |
---|
49 | |
---|
50 | <para os="h">Some of the Programs from Kbd are used by some of the scripts |
---|
51 | in the CLFS-Bootscripts package. As <filename |
---|
52 | class="directory">/usr</filename> may not be available during the early |
---|
53 | stages of booting, those binaries need to be on the root partition:</para> |
---|
54 | |
---|
55 | <screen os="i"><userinput>mv -v ${CLFS}/usr/bin/{kbd_mode,dumpkeys,loadkeys,openvt,setfont} ${CLFS}/bin</userinput></screen> |
---|
56 | |
---|
57 | </sect2> |
---|
58 | |
---|
59 | <sect2 id="contents-kbd" role="content"> |
---|
60 | <title>Contents of Kbd</title> |
---|
61 | |
---|
62 | <segmentedlist> |
---|
63 | <segtitle>Installed programs</segtitle> |
---|
64 | |
---|
65 | <seglistitem> |
---|
66 | <seg>chvt, deallocvt, dumpkeys, fgconsole, getkeycodes, kbd_mode, |
---|
67 | kbdrate, loadkeys, loadunimap, mapscrn, openvt, psfaddtable |
---|
68 | (link to psfxtable), psfgettable (link to psfxtable), psfstriptable |
---|
69 | (link to psfxtable), psfxtable, resizecons, setfont, setkeycodes, |
---|
70 | setleds, setmetamode, showconsolefont, showkey, unicode_start, and |
---|
71 | unicode_stop</seg> |
---|
72 | </seglistitem> |
---|
73 | </segmentedlist> |
---|
74 | |
---|
75 | <variablelist> |
---|
76 | <bridgehead renderas="sect3">Short Descriptions</bridgehead> |
---|
77 | <?dbfo list-presentation="list"?> |
---|
78 | <?dbhtml list-presentation="table"?> |
---|
79 | |
---|
80 | <varlistentry id="chvt"> |
---|
81 | <term><command>chvt</command></term> |
---|
82 | <listitem> |
---|
83 | <para>Changes the foreground virtual terminal</para> |
---|
84 | <indexterm zone="ch-system-kbd chvt"> |
---|
85 | <primary sortas="b-chvt">chvt</primary> |
---|
86 | </indexterm> |
---|
87 | </listitem> |
---|
88 | </varlistentry> |
---|
89 | |
---|
90 | <varlistentry id="deallocvt"> |
---|
91 | <term><command>deallocvt</command></term> |
---|
92 | <listitem> |
---|
93 | <para>Deallocates unused virtual terminals</para> |
---|
94 | <indexterm zone="ch-system-kbd deallocvt"> |
---|
95 | <primary sortas="b-deallocvt">deallocvt</primary> |
---|
96 | </indexterm> |
---|
97 | </listitem> |
---|
98 | </varlistentry> |
---|
99 | |
---|
100 | <varlistentry id="dumpkeys"> |
---|
101 | <term><command>dumpkeys</command></term> |
---|
102 | <listitem> |
---|
103 | <para>Dumps the keyboard translation tables</para> |
---|
104 | <indexterm zone="ch-system-kbd dumpkeys"> |
---|
105 | <primary sortas="b-dumpkeys">dumpkeys</primary> |
---|
106 | </indexterm> |
---|
107 | </listitem> |
---|
108 | </varlistentry> |
---|
109 | |
---|
110 | <varlistentry id="fgconsole"> |
---|
111 | <term><command>fgconsole</command></term> |
---|
112 | <listitem> |
---|
113 | <para>Prints the number of the active virtual terminal</para> |
---|
114 | <indexterm zone="ch-system-kbd fgconsole"> |
---|
115 | <primary sortas="b-fgconsole">fgconsole</primary> |
---|
116 | </indexterm> |
---|
117 | </listitem> |
---|
118 | </varlistentry> |
---|
119 | |
---|
120 | <varlistentry id="getkeycodes"> |
---|
121 | <term><command>getkeycodes</command></term> |
---|
122 | <listitem> |
---|
123 | <para>Prints the kernel scancode-to-keycode mapping table</para> |
---|
124 | <indexterm zone="ch-system-kbd getkeycodes"> |
---|
125 | <primary sortas="b-getkeycodes">getkeycodes</primary> |
---|
126 | </indexterm> |
---|
127 | </listitem> |
---|
128 | </varlistentry> |
---|
129 | |
---|
130 | <varlistentry id="kbd_mode"> |
---|
131 | <term><command>kbd_mode</command></term> |
---|
132 | <listitem> |
---|
133 | <para>Reports or sets the keyboard mode</para> |
---|
134 | <indexterm zone="ch-system-kbd kbd_mode"> |
---|
135 | <primary sortas="b-kbd_mode">kbd_mode</primary> |
---|
136 | </indexterm> |
---|
137 | </listitem> |
---|
138 | </varlistentry> |
---|
139 | |
---|
140 | <varlistentry id="kbdrate"> |
---|
141 | <term><command>kbdrate</command></term> |
---|
142 | <listitem> |
---|
143 | <para>Sets the keyboard repeat and delay rates</para> |
---|
144 | <indexterm zone="ch-system-kbd kbdrate"> |
---|
145 | <primary sortas="b-kbdrate">kbdrate</primary> |
---|
146 | </indexterm> |
---|
147 | </listitem> |
---|
148 | </varlistentry> |
---|
149 | |
---|
150 | <varlistentry id="loadkeys"> |
---|
151 | <term><command>loadkeys</command></term> |
---|
152 | <listitem> |
---|
153 | <para>Loads the keyboard translation tables</para> |
---|
154 | <indexterm zone="ch-system-kbd loadkeys"> |
---|
155 | <primary sortas="b-loadkeys">loadkeys</primary> |
---|
156 | </indexterm> |
---|
157 | </listitem> |
---|
158 | </varlistentry> |
---|
159 | |
---|
160 | <varlistentry id="loadunimap"> |
---|
161 | <term><command>loadunimap</command></term> |
---|
162 | <listitem> |
---|
163 | <para>Loads the kernel unicode-to-font mapping table</para> |
---|
164 | <indexterm zone="ch-system-kbd loadunimap"> |
---|
165 | <primary sortas="b-loadunimap">loadunimap</primary> |
---|
166 | </indexterm> |
---|
167 | </listitem> |
---|
168 | </varlistentry> |
---|
169 | |
---|
170 | <varlistentry id="mapscrn"> |
---|
171 | <term><command>mapscrn</command></term> |
---|
172 | <listitem> |
---|
173 | <para>An obsolete program that used to load a user-defined output |
---|
174 | character mapping table into the console driver; this is now done |
---|
175 | by <command>setfont</command></para> |
---|
176 | <indexterm zone="ch-system-kbd mapscrn"> |
---|
177 | <primary sortas="b-mapscrn">mapscrn</primary> |
---|
178 | </indexterm> |
---|
179 | </listitem> |
---|
180 | </varlistentry> |
---|
181 | |
---|
182 | <varlistentry id="openvt"> |
---|
183 | <term><command>openvt</command></term> |
---|
184 | <listitem> |
---|
185 | <para>Starts a program on a new virtual terminal (VT)</para> |
---|
186 | <indexterm zone="ch-system-kbd openvt"> |
---|
187 | <primary sortas="b-openvt">openvt</primary> |
---|
188 | </indexterm> |
---|
189 | </listitem> |
---|
190 | </varlistentry> |
---|
191 | |
---|
192 | <varlistentry id="psfaddtable"> |
---|
193 | <term><command>psfaddtable</command></term> |
---|
194 | <listitem> |
---|
195 | <para>A link to <command>psfxtable</command></para> |
---|
196 | <indexterm zone="ch-system-kbd psfaddtable"> |
---|
197 | <primary sortas="b-psfaddtable">psfaddtable</primary> |
---|
198 | </indexterm> |
---|
199 | </listitem> |
---|
200 | </varlistentry> |
---|
201 | |
---|
202 | <varlistentry id="psfgettable"> |
---|
203 | <term><command>psfgettable</command></term> |
---|
204 | <listitem> |
---|
205 | <para>A link to <command>psfxtable</command></para> |
---|
206 | <indexterm zone="ch-system-kbd psfgettable"> |
---|
207 | <primary sortas="b-psfgettable">psfgettable</primary> |
---|
208 | </indexterm> |
---|
209 | </listitem> |
---|
210 | </varlistentry> |
---|
211 | |
---|
212 | <varlistentry id="psfstriptable"> |
---|
213 | <term><command>psfstriptable</command></term> |
---|
214 | <listitem> |
---|
215 | <para>A link to <command>psfxtable</command></para> |
---|
216 | <indexterm zone="ch-system-kbd psfstriptable"> |
---|
217 | <primary sortas="b-psfstriptable">psfstriptable</primary> |
---|
218 | </indexterm> |
---|
219 | </listitem> |
---|
220 | </varlistentry> |
---|
221 | |
---|
222 | <varlistentry id="psfxtable"> |
---|
223 | <term><command>psfxtable</command></term> |
---|
224 | <listitem> |
---|
225 | <para>Handle Unicode character tables for console fonts</para> |
---|
226 | <indexterm zone="ch-system-kbd psfxtable"> |
---|
227 | <primary sortas="b-psfxtable">psfxtable</primary> |
---|
228 | </indexterm> |
---|
229 | </listitem> |
---|
230 | </varlistentry> |
---|
231 | |
---|
232 | <varlistentry id="resizecons"> |
---|
233 | <term><command>resizecons</command></term> |
---|
234 | <listitem> |
---|
235 | <para>Changes the kernel idea of the console size</para> |
---|
236 | <indexterm zone="ch-system-kbd resizecons"> |
---|
237 | <primary sortas="b-resizecons">resizecons</primary> |
---|
238 | </indexterm> |
---|
239 | </listitem> |
---|
240 | </varlistentry> |
---|
241 | |
---|
242 | <varlistentry id="setfont"> |
---|
243 | <term><command>setfont</command></term> |
---|
244 | <listitem> |
---|
245 | <para>Changes the Enhanced Graphic Adapter (EGA) and Video Graphics |
---|
246 | Array (VGA) fonts on the console</para> |
---|
247 | <indexterm zone="ch-system-kbd setfont"> |
---|
248 | <primary sortas="b-setfont">setfont</primary> |
---|
249 | </indexterm> |
---|
250 | </listitem> |
---|
251 | </varlistentry> |
---|
252 | |
---|
253 | <varlistentry id="setkeycodes"> |
---|
254 | <term><command>setkeycodes</command></term> |
---|
255 | <listitem> |
---|
256 | <para>Loads kernel scancode-to-keycode mapping table entries; this is |
---|
257 | useful if there are unusual keys on the keyboard</para> |
---|
258 | <indexterm zone="ch-system-kbd setkeycodes"> |
---|
259 | <primary sortas="b-setkeycodes">setkeycodes</primary> |
---|
260 | </indexterm> |
---|
261 | </listitem> |
---|
262 | </varlistentry> |
---|
263 | |
---|
264 | <varlistentry id="setleds"> |
---|
265 | <term><command>setleds</command></term> |
---|
266 | <listitem> |
---|
267 | <para>Sets the keyboard flags and Light Emitting Diodes (LEDs)</para> |
---|
268 | <indexterm zone="ch-system-kbd setleds"> |
---|
269 | <primary sortas="b-setleds">setleds</primary> |
---|
270 | </indexterm> |
---|
271 | </listitem> |
---|
272 | </varlistentry> |
---|
273 | |
---|
274 | <varlistentry id="setmetamode"> |
---|
275 | <term><command>setmetamode</command></term> |
---|
276 | <listitem> |
---|
277 | <para>Defines the keyboard meta-key handling</para> |
---|
278 | <indexterm zone="ch-system-kbd setmetamode"> |
---|
279 | <primary sortas="b-setmetamode">setmetamode</primary> |
---|
280 | </indexterm> |
---|
281 | </listitem> |
---|
282 | </varlistentry> |
---|
283 | |
---|
284 | <varlistentry id="showconsolefont"> |
---|
285 | <term><command>showconsolefont</command></term> |
---|
286 | <listitem> |
---|
287 | <para>Shows the current EGA/VGA console screen font</para> |
---|
288 | <indexterm zone="ch-system-kbd showconsolefont"> |
---|
289 | <primary sortas="b-showconsolefont">showconsolefont</primary> |
---|
290 | </indexterm> |
---|
291 | </listitem> |
---|
292 | </varlistentry> |
---|
293 | |
---|
294 | <varlistentry id="showkey"> |
---|
295 | <term><command>showkey</command></term> |
---|
296 | <listitem> |
---|
297 | <para>Reports the scancodes, keycodes, and ASCII codes of the keys |
---|
298 | pressed on the keyboard</para> |
---|
299 | <indexterm zone="ch-system-kbd showkey"> |
---|
300 | <primary sortas="b-showkey">showkey</primary> |
---|
301 | </indexterm> |
---|
302 | </listitem> |
---|
303 | </varlistentry> |
---|
304 | |
---|
305 | <varlistentry id="unicode_start"> |
---|
306 | <term><command>unicode_start</command></term> |
---|
307 | <listitem> |
---|
308 | <para>Puts the keyboard and console in UNICODE mode. Never use it on |
---|
309 | CLFS, because applications are not configured to support UNICODE.</para> |
---|
310 | <indexterm zone="ch-system-kbd unicode_start"> |
---|
311 | <primary sortas="b-unicode_start">unicode_start</primary> |
---|
312 | </indexterm> |
---|
313 | </listitem> |
---|
314 | </varlistentry> |
---|
315 | |
---|
316 | <varlistentry id="unicode_stop"> |
---|
317 | <term><command>unicode_stop</command></term> |
---|
318 | <listitem> |
---|
319 | <para>Reverts keyboard and console from UNICODE mode</para> |
---|
320 | <indexterm zone="ch-system-kbd unicode_stop"> |
---|
321 | <primary sortas="b-unicode_stop">unicode_stop</primary> |
---|
322 | </indexterm> |
---|
323 | </listitem> |
---|
324 | </varlistentry> |
---|
325 | |
---|
326 | </variablelist> |
---|
327 | |
---|
328 | </sect2> |
---|
329 | |
---|
330 | </sect1> |
---|