kbd.xml 13 KB

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