1
0

kbd.xml 13 KB

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