kbd.xml 11 KB

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