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