1
0

kbd.xml 13 KB

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