[3f8be484] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[aa18ac0] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[3f8be484] | 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 |
|
---|
[e0e40d3] | 28 | <para os="a">Prepare Kbd for compilation:</para>
|
---|
[3f8be484] | 29 |
|
---|
[aa2c20b] | 30 | <screen os="b"><userinput>PKG_CONFIG_PATH="/tools/lib/pkgconfig" \
|
---|
| 31 | ./configure --prefix=/usr --disable-vlock --enable-optional-progs</userinput></screen>
|
---|
[3f8be484] | 32 |
|
---|
[1a5985d] | 33 | <para os="c">Compile the package:</para>
|
---|
[3f8be484] | 34 |
|
---|
[1a5985d] | 35 | <screen os="d"><userinput>make</userinput></screen>
|
---|
[3f8be484] | 36 |
|
---|
[1a5985d] | 37 | <para os="e">This package does not come with a test suite.</para>
|
---|
[3f8be484] | 38 |
|
---|
[1a5985d] | 39 | <para os="f">Install the package:</para>
|
---|
[d1631d1] | 40 |
|
---|
[1a5985d] | 41 | <screen os="g"><userinput>make install</userinput></screen>
|
---|
[f343234] | 42 |
|
---|
[f7e91f6] | 43 | <para os="h">Some of the programs from Kbd are used by systemd to
|
---|
| 44 | initialize the system, those binaries need to be on the root
|
---|
| 45 | partition:</para>
|
---|
| 46 |
|
---|
| 47 | <screen os="i"><userinput>mv -v /usr/bin/{loadkeys,setfont} /bin</userinput></screen>
|
---|
| 48 |
|
---|
[3f8be484] | 49 | </sect2>
|
---|
| 50 |
|
---|
| 51 | <sect2 id="contents-kbd" role="content">
|
---|
| 52 | <title>Contents of Kbd</title>
|
---|
| 53 |
|
---|
| 54 | <segmentedlist>
|
---|
| 55 | <segtitle>Installed programs</segtitle>
|
---|
[61ad0b7f] | 56 | <segtitle>Installed directories</segtitle>
|
---|
[3f8be484] | 57 |
|
---|
| 58 | <seglistitem>
|
---|
[411eb70] | 59 | <seg>chvt, deallocvt, dumpkeys, fgconsole, getkeycodes, kbdinfo,
|
---|
| 60 | kbd_mode, kbdrate, loadkeys, loadunimap, mapscrn, openvt, psfaddtable
|
---|
[3f8be484] | 61 | (link to psfxtable), psfgettable (link to psfxtable), psfstriptable
|
---|
| 62 | (link to psfxtable), psfxtable, resizecons, setfont, setkeycodes,
|
---|
[411eb70] | 63 | setleds, setmetamode, setvtrgb, showconsolefont, showkey,
|
---|
| 64 | unicode_start, and unicode_stop</seg>
|
---|
[61ad0b7f] | 65 | <seg>/usr/share/consolefonts, /usr/share/consoletrans,
|
---|
| 66 | /usr/share/keymaps, /usr/share/unimaps</seg>
|
---|
[3f8be484] | 67 | </seglistitem>
|
---|
| 68 | </segmentedlist>
|
---|
| 69 |
|
---|
| 70 | <variablelist>
|
---|
| 71 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 72 | <?dbfo list-presentation="list"?>
|
---|
| 73 | <?dbhtml list-presentation="table"?>
|
---|
| 74 |
|
---|
| 75 | <varlistentry id="chvt">
|
---|
| 76 | <term><command>chvt</command></term>
|
---|
| 77 | <listitem>
|
---|
| 78 | <para>Changes the foreground virtual terminal</para>
|
---|
| 79 | <indexterm zone="ch-system-kbd chvt">
|
---|
| 80 | <primary sortas="b-chvt">chvt</primary>
|
---|
| 81 | </indexterm>
|
---|
| 82 | </listitem>
|
---|
| 83 | </varlistentry>
|
---|
| 84 |
|
---|
| 85 | <varlistentry id="deallocvt">
|
---|
| 86 | <term><command>deallocvt</command></term>
|
---|
| 87 | <listitem>
|
---|
| 88 | <para>Deallocates unused virtual terminals</para>
|
---|
| 89 | <indexterm zone="ch-system-kbd deallocvt">
|
---|
| 90 | <primary sortas="b-deallocvt">deallocvt</primary>
|
---|
| 91 | </indexterm>
|
---|
| 92 | </listitem>
|
---|
| 93 | </varlistentry>
|
---|
| 94 |
|
---|
| 95 | <varlistentry id="dumpkeys">
|
---|
| 96 | <term><command>dumpkeys</command></term>
|
---|
| 97 | <listitem>
|
---|
| 98 | <para>Dumps the keyboard translation tables</para>
|
---|
| 99 | <indexterm zone="ch-system-kbd dumpkeys">
|
---|
| 100 | <primary sortas="b-dumpkeys">dumpkeys</primary>
|
---|
| 101 | </indexterm>
|
---|
| 102 | </listitem>
|
---|
| 103 | </varlistentry>
|
---|
| 104 |
|
---|
| 105 | <varlistentry id="fgconsole">
|
---|
| 106 | <term><command>fgconsole</command></term>
|
---|
| 107 | <listitem>
|
---|
| 108 | <para>Prints the number of the active virtual terminal</para>
|
---|
| 109 | <indexterm zone="ch-system-kbd fgconsole">
|
---|
| 110 | <primary sortas="b-fgconsole">fgconsole</primary>
|
---|
| 111 | </indexterm>
|
---|
| 112 | </listitem>
|
---|
| 113 | </varlistentry>
|
---|
| 114 |
|
---|
| 115 | <varlistentry id="getkeycodes">
|
---|
| 116 | <term><command>getkeycodes</command></term>
|
---|
| 117 | <listitem>
|
---|
| 118 | <para>Prints the kernel scancode-to-keycode mapping table</para>
|
---|
| 119 | <indexterm zone="ch-system-kbd getkeycodes">
|
---|
| 120 | <primary sortas="b-getkeycodes">getkeycodes</primary>
|
---|
| 121 | </indexterm>
|
---|
| 122 | </listitem>
|
---|
| 123 | </varlistentry>
|
---|
| 124 |
|
---|
[411eb70] | 125 | <varlistentry id="kbdinfo">
|
---|
| 126 | <term><command>kbdinfo</command></term>
|
---|
| 127 | <listitem>
|
---|
| 128 | <para>Obtains information about the console</para>
|
---|
| 129 | <indexterm zone="ch-system-kbd kbdinfo">
|
---|
| 130 | <primary sortas="b-kbdinfo">kbdinfo</primary>
|
---|
| 131 | </indexterm>
|
---|
| 132 | </listitem>
|
---|
| 133 | </varlistentry>
|
---|
| 134 |
|
---|
[3f8be484] | 135 | <varlistentry id="kbd_mode">
|
---|
| 136 | <term><command>kbd_mode</command></term>
|
---|
| 137 | <listitem>
|
---|
| 138 | <para>Reports or sets the keyboard mode</para>
|
---|
| 139 | <indexterm zone="ch-system-kbd kbd_mode">
|
---|
| 140 | <primary sortas="b-kbd_mode">kbd_mode</primary>
|
---|
| 141 | </indexterm>
|
---|
| 142 | </listitem>
|
---|
| 143 | </varlistentry>
|
---|
| 144 |
|
---|
| 145 | <varlistentry id="kbdrate">
|
---|
| 146 | <term><command>kbdrate</command></term>
|
---|
| 147 | <listitem>
|
---|
| 148 | <para>Sets the keyboard repeat and delay rates</para>
|
---|
| 149 | <indexterm zone="ch-system-kbd kbdrate">
|
---|
| 150 | <primary sortas="b-kbdrate">kbdrate</primary>
|
---|
| 151 | </indexterm>
|
---|
| 152 | </listitem>
|
---|
| 153 | </varlistentry>
|
---|
| 154 |
|
---|
| 155 | <varlistentry id="loadkeys">
|
---|
| 156 | <term><command>loadkeys</command></term>
|
---|
| 157 | <listitem>
|
---|
| 158 | <para>Loads the keyboard translation tables</para>
|
---|
| 159 | <indexterm zone="ch-system-kbd loadkeys">
|
---|
| 160 | <primary sortas="b-loadkeys">loadkeys</primary>
|
---|
| 161 | </indexterm>
|
---|
| 162 | </listitem>
|
---|
| 163 | </varlistentry>
|
---|
| 164 |
|
---|
| 165 | <varlistentry id="loadunimap">
|
---|
| 166 | <term><command>loadunimap</command></term>
|
---|
| 167 | <listitem>
|
---|
| 168 | <para>Loads the kernel unicode-to-font mapping table</para>
|
---|
| 169 | <indexterm zone="ch-system-kbd loadunimap">
|
---|
| 170 | <primary sortas="b-loadunimap">loadunimap</primary>
|
---|
| 171 | </indexterm>
|
---|
| 172 | </listitem>
|
---|
| 173 | </varlistentry>
|
---|
| 174 |
|
---|
| 175 | <varlistentry id="mapscrn">
|
---|
| 176 | <term><command>mapscrn</command></term>
|
---|
| 177 | <listitem>
|
---|
| 178 | <para>An obsolete program that used to load a user-defined output
|
---|
| 179 | character mapping table into the console driver; this is now done
|
---|
| 180 | by <command>setfont</command></para>
|
---|
| 181 | <indexterm zone="ch-system-kbd mapscrn">
|
---|
| 182 | <primary sortas="b-mapscrn">mapscrn</primary>
|
---|
| 183 | </indexterm>
|
---|
| 184 | </listitem>
|
---|
| 185 | </varlistentry>
|
---|
| 186 |
|
---|
| 187 | <varlistentry id="openvt">
|
---|
| 188 | <term><command>openvt</command></term>
|
---|
| 189 | <listitem>
|
---|
| 190 | <para>Starts a program on a new virtual terminal (VT)</para>
|
---|
| 191 | <indexterm zone="ch-system-kbd openvt">
|
---|
| 192 | <primary sortas="b-openvt">openvt</primary>
|
---|
| 193 | </indexterm>
|
---|
| 194 | </listitem>
|
---|
| 195 | </varlistentry>
|
---|
| 196 |
|
---|
| 197 | <varlistentry id="psfaddtable">
|
---|
| 198 | <term><command>psfaddtable</command></term>
|
---|
| 199 | <listitem>
|
---|
| 200 | <para>A link to <command>psfxtable</command></para>
|
---|
| 201 | <indexterm zone="ch-system-kbd psfaddtable">
|
---|
| 202 | <primary sortas="b-psfaddtable">psfaddtable</primary>
|
---|
| 203 | </indexterm>
|
---|
| 204 | </listitem>
|
---|
| 205 | </varlistentry>
|
---|
| 206 |
|
---|
| 207 | <varlistentry id="psfgettable">
|
---|
| 208 | <term><command>psfgettable</command></term>
|
---|
| 209 | <listitem>
|
---|
| 210 | <para>A link to <command>psfxtable</command></para>
|
---|
| 211 | <indexterm zone="ch-system-kbd psfgettable">
|
---|
| 212 | <primary sortas="b-psfgettable">psfgettable</primary>
|
---|
| 213 | </indexterm>
|
---|
| 214 | </listitem>
|
---|
| 215 | </varlistentry>
|
---|
| 216 |
|
---|
| 217 | <varlistentry id="psfstriptable">
|
---|
| 218 | <term><command>psfstriptable</command></term>
|
---|
| 219 | <listitem>
|
---|
| 220 | <para>A link to <command>psfxtable</command></para>
|
---|
| 221 | <indexterm zone="ch-system-kbd psfstriptable">
|
---|
| 222 | <primary sortas="b-psfstriptable">psfstriptable</primary>
|
---|
| 223 | </indexterm>
|
---|
| 224 | </listitem>
|
---|
| 225 | </varlistentry>
|
---|
| 226 |
|
---|
| 227 | <varlistentry id="psfxtable">
|
---|
| 228 | <term><command>psfxtable</command></term>
|
---|
| 229 | <listitem>
|
---|
| 230 | <para>Handle Unicode character tables for console fonts</para>
|
---|
| 231 | <indexterm zone="ch-system-kbd psfxtable">
|
---|
| 232 | <primary sortas="b-psfxtable">psfxtable</primary>
|
---|
| 233 | </indexterm>
|
---|
| 234 | </listitem>
|
---|
| 235 | </varlistentry>
|
---|
| 236 |
|
---|
| 237 | <varlistentry id="resizecons">
|
---|
| 238 | <term><command>resizecons</command></term>
|
---|
| 239 | <listitem>
|
---|
| 240 | <para>Changes the kernel idea of the console size</para>
|
---|
| 241 | <indexterm zone="ch-system-kbd resizecons">
|
---|
| 242 | <primary sortas="b-resizecons">resizecons</primary>
|
---|
| 243 | </indexterm>
|
---|
| 244 | </listitem>
|
---|
| 245 | </varlistentry>
|
---|
| 246 |
|
---|
| 247 | <varlistentry id="setfont">
|
---|
| 248 | <term><command>setfont</command></term>
|
---|
| 249 | <listitem>
|
---|
| 250 | <para>Changes the Enhanced Graphic Adapter (EGA) and Video Graphics
|
---|
| 251 | Array (VGA) fonts on the console</para>
|
---|
| 252 | <indexterm zone="ch-system-kbd setfont">
|
---|
| 253 | <primary sortas="b-setfont">setfont</primary>
|
---|
| 254 | </indexterm>
|
---|
| 255 | </listitem>
|
---|
| 256 | </varlistentry>
|
---|
| 257 |
|
---|
| 258 | <varlistentry id="setkeycodes">
|
---|
| 259 | <term><command>setkeycodes</command></term>
|
---|
| 260 | <listitem>
|
---|
| 261 | <para>Loads kernel scancode-to-keycode mapping table entries; this is
|
---|
| 262 | useful if there are unusual keys on the keyboard</para>
|
---|
| 263 | <indexterm zone="ch-system-kbd setkeycodes">
|
---|
| 264 | <primary sortas="b-setkeycodes">setkeycodes</primary>
|
---|
| 265 | </indexterm>
|
---|
| 266 | </listitem>
|
---|
| 267 | </varlistentry>
|
---|
| 268 |
|
---|
| 269 | <varlistentry id="setleds">
|
---|
| 270 | <term><command>setleds</command></term>
|
---|
| 271 | <listitem>
|
---|
| 272 | <para>Sets the keyboard flags and Light Emitting Diodes (LEDs)</para>
|
---|
| 273 | <indexterm zone="ch-system-kbd setleds">
|
---|
| 274 | <primary sortas="b-setleds">setleds</primary>
|
---|
| 275 | </indexterm>
|
---|
| 276 | </listitem>
|
---|
| 277 | </varlistentry>
|
---|
| 278 |
|
---|
| 279 | <varlistentry id="setmetamode">
|
---|
| 280 | <term><command>setmetamode</command></term>
|
---|
| 281 | <listitem>
|
---|
| 282 | <para>Defines the keyboard meta-key handling</para>
|
---|
| 283 | <indexterm zone="ch-system-kbd setmetamode">
|
---|
| 284 | <primary sortas="b-setmetamode">setmetamode</primary>
|
---|
| 285 | </indexterm>
|
---|
| 286 | </listitem>
|
---|
| 287 | </varlistentry>
|
---|
| 288 |
|
---|
[411eb70] | 289 | <varlistentry id="setvtrgb">
|
---|
| 290 | <term><command>setvtrgb</command></term>
|
---|
| 291 | <listitem>
|
---|
| 292 | <para>Sets the virtal terminal RGB colors</para>
|
---|
| 293 | <indexterm zone="ch-system-kbd setvtrgb">
|
---|
| 294 | <primary sortas="b-setvtrgb">setvtrgb</primary>
|
---|
| 295 | </indexterm>
|
---|
| 296 | </listitem>
|
---|
| 297 | </varlistentry>
|
---|
| 298 |
|
---|
[3f8be484] | 299 | <varlistentry id="showconsolefont">
|
---|
| 300 | <term><command>showconsolefont</command></term>
|
---|
| 301 | <listitem>
|
---|
| 302 | <para>Shows the current EGA/VGA console screen font</para>
|
---|
| 303 | <indexterm zone="ch-system-kbd showconsolefont">
|
---|
| 304 | <primary sortas="b-showconsolefont">showconsolefont</primary>
|
---|
| 305 | </indexterm>
|
---|
| 306 | </listitem>
|
---|
| 307 | </varlistentry>
|
---|
| 308 |
|
---|
| 309 | <varlistentry id="showkey">
|
---|
| 310 | <term><command>showkey</command></term>
|
---|
| 311 | <listitem>
|
---|
| 312 | <para>Reports the scancodes, keycodes, and ASCII codes of the keys
|
---|
| 313 | pressed on the keyboard</para>
|
---|
| 314 | <indexterm zone="ch-system-kbd showkey">
|
---|
| 315 | <primary sortas="b-showkey">showkey</primary>
|
---|
| 316 | </indexterm>
|
---|
| 317 | </listitem>
|
---|
| 318 | </varlistentry>
|
---|
| 319 |
|
---|
| 320 | <varlistentry id="unicode_start">
|
---|
| 321 | <term><command>unicode_start</command></term>
|
---|
| 322 | <listitem>
|
---|
| 323 | <para>Puts the keyboard and console in UNICODE mode. Never use it on
|
---|
[fb40919] | 324 | CLFS, because applications are not configured to support UNICODE.</para>
|
---|
[3f8be484] | 325 | <indexterm zone="ch-system-kbd unicode_start">
|
---|
| 326 | <primary sortas="b-unicode_start">unicode_start</primary>
|
---|
| 327 | </indexterm>
|
---|
| 328 | </listitem>
|
---|
| 329 | </varlistentry>
|
---|
| 330 |
|
---|
| 331 | <varlistentry id="unicode_stop">
|
---|
| 332 | <term><command>unicode_stop</command></term>
|
---|
| 333 | <listitem>
|
---|
| 334 | <para>Reverts keyboard and console from UNICODE mode</para>
|
---|
| 335 | <indexterm zone="ch-system-kbd unicode_stop">
|
---|
| 336 | <primary sortas="b-unicode_stop">unicode_stop</primary>
|
---|
| 337 | </indexterm>
|
---|
| 338 | </listitem>
|
---|
| 339 | </varlistentry>
|
---|
| 340 |
|
---|
| 341 | </variablelist>
|
---|
| 342 |
|
---|
| 343 | </sect2>
|
---|
| 344 |
|
---|
| 345 | </sect1>
|
---|