[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[013bb45] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[673b0d8] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[013bb45] | 7 |
|
---|
[81fd230] | 8 | <sect1 id="ch-system-kbd" role="wrap">
|
---|
[013bb45] | 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>
|
---|
[5df2845] | 16 |
|
---|
[013bb45] | 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
[f553044] | 19 |
|
---|
| 20 | <para>The Kbd package contains key-table files and keyboard utilities.</para>
|
---|
| 21 |
|
---|
| 22 | <segmentedlist>
|
---|
| 23 | <segtitle>&buildtime;</segtitle>
|
---|
| 24 | <segtitle>&diskspace;</segtitle>
|
---|
| 25 |
|
---|
| 26 | <seglistitem>
|
---|
| 27 | <seg>0.1 SBU</seg>
|
---|
| 28 | <seg>11.8 MB</seg>
|
---|
| 29 | </seglistitem>
|
---|
| 30 | </segmentedlist>
|
---|
| 31 |
|
---|
| 32 | <segmentedlist>
|
---|
| 33 | <segtitle>&dependencies;</segtitle>
|
---|
| 34 |
|
---|
| 35 | <seglistitem>
|
---|
| 36 | <seg>Bash, Binutils, Bison, Coreutils, Diffutils, Flex, GCC, Gettext,
|
---|
| 37 | Glibc, Grep, Gzip, M4, Make, and Sed</seg>
|
---|
| 38 | </seglistitem>
|
---|
| 39 | </segmentedlist>
|
---|
[73aedd1d] | 40 |
|
---|
[013bb45] | 41 | </sect2>
|
---|
| 42 |
|
---|
| 43 | <sect2 role="installation">
|
---|
| 44 | <title>Installation of Kbd</title>
|
---|
| 45 |
|
---|
| 46 | <para>The behaviour of the Backspace and Delete keys is not consistent
|
---|
| 47 | across the keymaps in the Kbd package. The following patch fixes this
|
---|
| 48 | issue for i386 keymaps:</para>
|
---|
[fa21b3d] | 49 |
|
---|
| 50 | <screen><userinput>patch -Np1 -i ../&kbd-backspace-patch;</userinput></screen>
|
---|
| 51 |
|
---|
[013bb45] | 52 | <para>After patching, the Backspace key generates the character with code 127,
|
---|
| 53 | and the Delete key generates a well-known escape sequence.</para>
|
---|
[fa21b3d] | 54 |
|
---|
[013bb45] | 55 | <para>Patch Kbd to fix a bug in <command>setfont</command> that is triggered
|
---|
| 56 | when compiling with GCC-&gcc-version;:</para>
|
---|
[2e02c35] | 57 |
|
---|
| 58 | <screen><userinput>patch -Np1 -i ../&kbd-gcc4_fixes-patch;</userinput></screen>
|
---|
| 59 |
|
---|
[013bb45] | 60 | <para>Prepare Kbd for compilation:</para>
|
---|
[73aedd1d] | 61 |
|
---|
| 62 | <screen><userinput>./configure</userinput></screen>
|
---|
| 63 |
|
---|
[013bb45] | 64 | <para>Compile the package:</para>
|
---|
[73aedd1d] | 65 |
|
---|
| 66 | <screen><userinput>make</userinput></screen>
|
---|
| 67 |
|
---|
[013bb45] | 68 | <para>This package does not come with a test suite.</para>
|
---|
[0be3d41] | 69 |
|
---|
[013bb45] | 70 | <para>Install the package:</para>
|
---|
[73aedd1d] | 71 |
|
---|
| 72 | <screen><userinput>make install</userinput></screen>
|
---|
| 73 |
|
---|
[013bb45] | 74 | <note>
|
---|
| 75 | <para>For some languages (e.g., Belarusian) the Kbd package doesn't
|
---|
| 76 | provide a useful keymap (the stock <quote>by</quote> keymap assumes the
|
---|
| 77 | ISO-8859-5 encoding, while everybody uses CP1251 instead). Users of such
|
---|
| 78 | languages have to download working keymaps separately.</para>
|
---|
| 79 | </note>
|
---|
| 80 |
|
---|
| 81 | </sect2>
|
---|
| 82 |
|
---|
| 83 | <sect2 id="contents-kbd" role="content">
|
---|
| 84 | <title>Contents of Kbd</title>
|
---|
| 85 |
|
---|
| 86 | <segmentedlist>
|
---|
| 87 | <segtitle>Installed programs</segtitle>
|
---|
| 88 |
|
---|
| 89 | <seglistitem>
|
---|
| 90 | <seg>chvt, deallocvt, dumpkeys,
|
---|
| 91 | fgconsole, getkeycodes, getunimap, kbd_mode, kbdrate, loadkeys, loadunimap,
|
---|
| 92 | mapscrn, openvt, psfaddtable (link to psfxtable), psfgettable (link to
|
---|
| 93 | psfxtable), psfstriptable (link to psfxtable), psfxtable, resizecons,
|
---|
| 94 | setfont, setkeycodes, setleds, setlogcons, setmetamode, setvesablank,
|
---|
| 95 | showconsolefont, showkey, unicode_start, and unicode_stop</seg>
|
---|
| 96 | </seglistitem>
|
---|
| 97 | </segmentedlist>
|
---|
| 98 |
|
---|
| 99 | <variablelist>
|
---|
| 100 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 101 | <?dbfo list-presentation="list"?>
|
---|
| 102 | <?dbhtml list-presentation="table"?>
|
---|
| 103 |
|
---|
| 104 | <varlistentry id="chvt">
|
---|
| 105 | <term><command>chvt</command></term>
|
---|
| 106 | <listitem>
|
---|
| 107 | <para>Changes the foreground virtual terminal</para>
|
---|
| 108 | <indexterm zone="ch-system-kbd chvt">
|
---|
| 109 | <primary sortas="b-chvt">chvt</primary>
|
---|
| 110 | </indexterm>
|
---|
| 111 | </listitem>
|
---|
| 112 | </varlistentry>
|
---|
| 113 |
|
---|
| 114 | <varlistentry id="deallocvt">
|
---|
| 115 | <term><command>deallocvt</command></term>
|
---|
| 116 | <listitem>
|
---|
| 117 | <para>Deallocates unused virtual terminals</para>
|
---|
| 118 | <indexterm zone="ch-system-kbd deallocvt">
|
---|
| 119 | <primary sortas="b-deallocvt">deallocvt</primary>
|
---|
| 120 | </indexterm>
|
---|
| 121 | </listitem>
|
---|
| 122 | </varlistentry>
|
---|
| 123 |
|
---|
| 124 | <varlistentry id="dumpkeys">
|
---|
| 125 | <term><command>dumpkeys</command></term>
|
---|
| 126 | <listitem>
|
---|
| 127 | <para>Dumps the keyboard translation tables</para>
|
---|
| 128 | <indexterm zone="ch-system-kbd dumpkeys">
|
---|
| 129 | <primary sortas="b-dumpkeys">dumpkeys</primary>
|
---|
| 130 | </indexterm>
|
---|
| 131 | </listitem>
|
---|
| 132 | </varlistentry>
|
---|
| 133 |
|
---|
| 134 | <varlistentry id="fgconsole">
|
---|
| 135 | <term><command>fgconsole</command></term>
|
---|
| 136 | <listitem>
|
---|
| 137 | <para>Prints the number of the active virtual terminal</para>
|
---|
| 138 | <indexterm zone="ch-system-kbd fgconsole">
|
---|
| 139 | <primary sortas="b-fgconsole">fgconsole</primary>
|
---|
| 140 | </indexterm>
|
---|
| 141 | </listitem>
|
---|
| 142 | </varlistentry>
|
---|
| 143 |
|
---|
| 144 | <varlistentry id="getkeycodes">
|
---|
| 145 | <term><command>getkeycodes</command></term>
|
---|
| 146 | <listitem>
|
---|
| 147 | <para>Prints the kernel scancode-to-keycode mapping table</para>
|
---|
| 148 | <indexterm zone="ch-system-kbd getkeycodes">
|
---|
| 149 | <primary sortas="b-getkeycodes">getkeycodes</primary>
|
---|
| 150 | </indexterm>
|
---|
| 151 | </listitem>
|
---|
| 152 | </varlistentry>
|
---|
| 153 |
|
---|
| 154 | <varlistentry id="getunimap">
|
---|
| 155 | <term><command>getunimap</command></term>
|
---|
| 156 | <listitem>
|
---|
| 157 | <para>Prints the currently used unicode-to-font mapping table</para>
|
---|
| 158 | <indexterm zone="ch-system-kbd getunimap">
|
---|
| 159 | <primary sortas="b-getunimap">getunimap</primary>
|
---|
| 160 | </indexterm>
|
---|
| 161 | </listitem>
|
---|
| 162 | </varlistentry>
|
---|
| 163 |
|
---|
| 164 | <varlistentry id="kbd_mode">
|
---|
| 165 | <term><command>kbd_mode</command></term>
|
---|
| 166 | <listitem>
|
---|
| 167 | <para>Reports or sets the keyboard mode</para>
|
---|
| 168 | <indexterm zone="ch-system-kbd kbd_mode">
|
---|
| 169 | <primary sortas="b-kbd_mode">kbd_mode</primary>
|
---|
| 170 | </indexterm>
|
---|
| 171 | </listitem>
|
---|
| 172 | </varlistentry>
|
---|
| 173 |
|
---|
| 174 | <varlistentry id="kbdrate">
|
---|
| 175 | <term><command>kbdrate</command></term>
|
---|
| 176 | <listitem>
|
---|
| 177 | <para>Sets the keyboard repeat and delay rates</para>
|
---|
| 178 | <indexterm zone="ch-system-kbd kbdrate">
|
---|
| 179 | <primary sortas="b-kbdrate">kbdrate</primary>
|
---|
| 180 | </indexterm>
|
---|
| 181 | </listitem>
|
---|
| 182 | </varlistentry>
|
---|
| 183 |
|
---|
| 184 | <varlistentry id="loadkeys">
|
---|
| 185 | <term><command>loadkeys</command></term>
|
---|
| 186 | <listitem>
|
---|
| 187 | <para>Loads the keyboard translation tables</para>
|
---|
| 188 | <indexterm zone="ch-system-kbd loadkeys">
|
---|
| 189 | <primary sortas="b-loadkeys">loadkeys</primary>
|
---|
| 190 | </indexterm>
|
---|
| 191 | </listitem>
|
---|
| 192 | </varlistentry>
|
---|
| 193 |
|
---|
| 194 | <varlistentry id="loadunimap">
|
---|
| 195 | <term><command>loadunimap</command></term>
|
---|
| 196 | <listitem>
|
---|
| 197 | <para>Loads the kernel unicode-to-font mapping table</para>
|
---|
| 198 | <indexterm zone="ch-system-kbd loadunimap">
|
---|
| 199 | <primary sortas="b-loadunimap">loadunimap</primary>
|
---|
| 200 | </indexterm>
|
---|
| 201 | </listitem>
|
---|
| 202 | </varlistentry>
|
---|
| 203 |
|
---|
| 204 | <varlistentry id="mapscrn">
|
---|
| 205 | <term><command>mapscrn</command></term>
|
---|
| 206 | <listitem>
|
---|
| 207 | <para>An obsolete program that used to load a user-defined output
|
---|
| 208 | character mapping table into the console driver; this is now done
|
---|
| 209 | by <command>setfont</command></para>
|
---|
| 210 | <indexterm zone="ch-system-kbd mapscrn">
|
---|
| 211 | <primary sortas="b-mapscrn">mapscrn</primary>
|
---|
| 212 | </indexterm>
|
---|
| 213 | </listitem>
|
---|
| 214 | </varlistentry>
|
---|
| 215 |
|
---|
| 216 | <varlistentry id="openvt">
|
---|
| 217 | <term><command>openvt</command></term>
|
---|
| 218 | <listitem>
|
---|
| 219 | <para>Starts a program on a new virtual terminal (VT)</para>
|
---|
| 220 | <indexterm zone="ch-system-kbd openvt">
|
---|
| 221 | <primary sortas="b-openvt">openvt</primary>
|
---|
| 222 | </indexterm>
|
---|
| 223 | </listitem>
|
---|
| 224 | </varlistentry>
|
---|
| 225 |
|
---|
| 226 | <varlistentry id="psfaddtable">
|
---|
| 227 | <term><command>psfaddtable</command></term>
|
---|
| 228 | <listitem>
|
---|
| 229 | <para>A link to <command>psfxtable</command></para>
|
---|
| 230 | <indexterm zone="ch-system-kbd psfaddtable">
|
---|
| 231 | <primary sortas="b-psfaddtable">psfaddtable</primary>
|
---|
| 232 | </indexterm>
|
---|
| 233 | </listitem>
|
---|
| 234 | </varlistentry>
|
---|
| 235 |
|
---|
| 236 | <varlistentry id="psfgettable">
|
---|
| 237 | <term><command>psfgettable</command></term>
|
---|
| 238 | <listitem>
|
---|
| 239 | <para>A link to <command>psfxtable</command></para>
|
---|
| 240 | <indexterm zone="ch-system-kbd psfgettable">
|
---|
| 241 | <primary sortas="b-psfgettable">psfgettable</primary>
|
---|
| 242 | </indexterm>
|
---|
| 243 | </listitem>
|
---|
| 244 | </varlistentry>
|
---|
| 245 |
|
---|
| 246 | <varlistentry id="psfstriptable">
|
---|
| 247 | <term><command>psfstriptable</command></term>
|
---|
| 248 | <listitem>
|
---|
| 249 | <para>A link to <command>psfxtable</command></para>
|
---|
| 250 | <indexterm zone="ch-system-kbd psfstriptable">
|
---|
| 251 | <primary sortas="b-psfstriptable">psfstriptable</primary>
|
---|
| 252 | </indexterm>
|
---|
| 253 | </listitem>
|
---|
| 254 | </varlistentry>
|
---|
| 255 |
|
---|
| 256 | <varlistentry id="psfxtable">
|
---|
| 257 | <term><command>psfxtable</command></term>
|
---|
| 258 | <listitem>
|
---|
| 259 | <para>Handle Unicode character tables for console fonts</para>
|
---|
| 260 | <indexterm zone="ch-system-kbd psfxtable">
|
---|
| 261 | <primary sortas="b-psfxtable">psfxtable</primary>
|
---|
| 262 | </indexterm>
|
---|
| 263 | </listitem>
|
---|
| 264 | </varlistentry>
|
---|
| 265 |
|
---|
| 266 | <varlistentry id="resizecons">
|
---|
| 267 | <term><command>resizecons</command></term>
|
---|
| 268 | <listitem>
|
---|
| 269 | <para>Changes the kernel idea of the console size</para>
|
---|
| 270 | <indexterm zone="ch-system-kbd resizecons">
|
---|
| 271 | <primary sortas="b-resizecons">resizecons</primary>
|
---|
| 272 | </indexterm>
|
---|
| 273 | </listitem>
|
---|
| 274 | </varlistentry>
|
---|
| 275 |
|
---|
| 276 | <varlistentry id="setfont">
|
---|
| 277 | <term><command>setfont</command></term>
|
---|
| 278 | <listitem>
|
---|
| 279 | <para>Changes the Enhanced Graphic Adapter (EGA) and Video Graphics
|
---|
| 280 | Array (VGA) fonts on the console</para>
|
---|
| 281 | <indexterm zone="ch-system-kbd setfont">
|
---|
| 282 | <primary sortas="b-setfont">setfont</primary>
|
---|
| 283 | </indexterm>
|
---|
| 284 | </listitem>
|
---|
| 285 | </varlistentry>
|
---|
| 286 |
|
---|
| 287 | <varlistentry id="setkeycodes">
|
---|
| 288 | <term><command>setkeycodes</command></term>
|
---|
| 289 | <listitem>
|
---|
| 290 | <para>Loads kernel scancode-to-keycode mapping table entries; this is
|
---|
| 291 | useful if there are unusual keys on the keyboard</para>
|
---|
| 292 | <indexterm zone="ch-system-kbd setkeycodes">
|
---|
| 293 | <primary sortas="b-setkeycodes">setkeycodes</primary>
|
---|
| 294 | </indexterm>
|
---|
| 295 | </listitem>
|
---|
| 296 | </varlistentry>
|
---|
| 297 |
|
---|
| 298 | <varlistentry id="setleds">
|
---|
| 299 | <term><command>setleds</command></term>
|
---|
| 300 | <listitem>
|
---|
| 301 | <para>Sets the keyboard flags and Light Emitting Diodes (LEDs)</para>
|
---|
| 302 | <indexterm zone="ch-system-kbd setleds">
|
---|
| 303 | <primary sortas="b-setleds">setleds</primary>
|
---|
| 304 | </indexterm>
|
---|
| 305 | </listitem>
|
---|
| 306 | </varlistentry>
|
---|
| 307 |
|
---|
| 308 | <varlistentry id="setlogcons">
|
---|
| 309 | <term><command>setlogcons</command></term>
|
---|
| 310 | <listitem>
|
---|
| 311 | <para>Sends kernel messages to the console</para>
|
---|
| 312 | <indexterm zone="ch-system-kbd setlogcons">
|
---|
| 313 | <primary sortas="b-setlogcons">setlogcons</primary>
|
---|
| 314 | </indexterm>
|
---|
| 315 | </listitem>
|
---|
| 316 | </varlistentry>
|
---|
| 317 |
|
---|
| 318 | <varlistentry id="setmetamode">
|
---|
| 319 | <term><command>setmetamode</command></term>
|
---|
| 320 | <listitem>
|
---|
| 321 | <para>Defines the keyboard meta-key handling</para>
|
---|
| 322 | <indexterm zone="ch-system-kbd setmetamode">
|
---|
| 323 | <primary sortas="b-setmetamode">setmetamode</primary>
|
---|
| 324 | </indexterm>
|
---|
| 325 | </listitem>
|
---|
| 326 | </varlistentry>
|
---|
| 327 |
|
---|
| 328 | <varlistentry id="setvesablank">
|
---|
| 329 | <term><command>setvesablank</command></term>
|
---|
| 330 | <listitem>
|
---|
| 331 | <para>Lets the user adjust the built-in hardware screensaver (a blank
|
---|
| 332 | screen)</para>
|
---|
| 333 | <indexterm zone="ch-system-kbd setvesablank">
|
---|
| 334 | <primary sortas="b-setvesablank">setvesablank</primary>
|
---|
| 335 | </indexterm>
|
---|
| 336 | </listitem>
|
---|
| 337 | </varlistentry>
|
---|
| 338 |
|
---|
| 339 | <varlistentry id="showconsolefont">
|
---|
| 340 | <term><command>showconsolefont</command></term>
|
---|
| 341 | <listitem>
|
---|
| 342 | <para>Shows the current EGA/VGA console screen font</para>
|
---|
| 343 | <indexterm zone="ch-system-kbd showconsolefont">
|
---|
| 344 | <primary sortas="b-showconsolefont">showconsolefont</primary>
|
---|
| 345 | </indexterm>
|
---|
| 346 | </listitem>
|
---|
| 347 | </varlistentry>
|
---|
| 348 |
|
---|
| 349 | <varlistentry id="showkey">
|
---|
| 350 | <term><command>showkey</command></term>
|
---|
| 351 | <listitem>
|
---|
| 352 | <para>Reports the scancodes, keycodes, and ASCII codes of the keys
|
---|
| 353 | pressed on the keyboard</para>
|
---|
| 354 | <indexterm zone="ch-system-kbd showkey">
|
---|
| 355 | <primary sortas="b-showkey">showkey</primary>
|
---|
| 356 | </indexterm>
|
---|
| 357 | </listitem>
|
---|
| 358 | </varlistentry>
|
---|
| 359 |
|
---|
| 360 | <varlistentry id="unicode_start">
|
---|
| 361 | <term><command>unicode_start</command></term>
|
---|
| 362 | <listitem>
|
---|
| 363 | <para>Puts the keyboard and console in UNICODE mode. Don't use this
|
---|
| 364 | program unless your keymap file is in the ISO-8859-1 encoding. For
|
---|
| 365 | other encodings, this utility produces incorrect results.</para>
|
---|
| 366 | <indexterm zone="ch-system-kbd unicode_start">
|
---|
| 367 | <primary sortas="b-unicode_start">unicode_start</primary>
|
---|
| 368 | </indexterm>
|
---|
| 369 | </listitem>
|
---|
| 370 | </varlistentry>
|
---|
| 371 |
|
---|
| 372 | <varlistentry id="unicode_stop">
|
---|
| 373 | <term><command>unicode_stop</command></term>
|
---|
| 374 | <listitem>
|
---|
| 375 | <para>Reverts keyboard and console from UNICODE mode</para>
|
---|
| 376 | <indexterm zone="ch-system-kbd unicode_stop">
|
---|
| 377 | <primary sortas="b-unicode_stop">unicode_stop</primary>
|
---|
| 378 | </indexterm>
|
---|
| 379 | </listitem>
|
---|
| 380 | </varlistentry>
|
---|
| 381 |
|
---|
| 382 | </variablelist>
|
---|
| 383 |
|
---|
| 384 | </sect2>
|
---|
[673b0d8] | 385 |
|
---|
| 386 | </sect1>
|
---|