kbd.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  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, console fonts, and keyboard
  21. utilities.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&kbd-ch6-sbu;</seg>
  27. <seg>&kbd-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Kbd</title>
  33. <para>The behaviour of the Backspace and Delete keys is not consistent
  34. across the keymaps in the Kbd package. The following patch fixes this
  35. issue for i386 keymaps:</para>
  36. <screen><userinput remap="pre">patch -Np1 -i ../&kbd-backspace-patch;</userinput></screen>
  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. <para>Remove the redundant <command>resizecons</command> program (it requires
  40. the defunct svgalib to provide the video mode files - for normal use
  41. <command>setfont</command> sizes the console appropriately) together with its
  42. manpage.</para>
  43. <screen><userinput remap="pre">sed -i 's/\(RESIZECONS_PROGS=\)yes/\1no/g' configure
  44. sed -i 's/resizecons.8 //' docs/man/man8/Makefile.in</userinput></screen>
  45. <para>Prepare Kbd for compilation:</para>
  46. <screen><userinput remap="configure">PKG_CONFIG_PATH=/tools/lib/pkgconfig ./configure --prefix=/usr --disable-vlock</userinput></screen>
  47. <variablelist>
  48. <title>The meaning of the configure options:</title>
  49. <!--
  50. <varlistentry>
  51. <term><parameter>- -datadir=/lib/kbd</parameter></term>
  52. <listitem>
  53. <para>This option puts keyboard layout data in a directory that will
  54. always be on the root partition instead of the default <filename
  55. class="directory">/usr/share/kbd</filename>.</para>
  56. </listitem>
  57. </varlistentry>
  58. -->
  59. <varlistentry>
  60. <term><parameter>--disable-vlock</parameter></term>
  61. <listitem>
  62. <para>This option prevents the vlock utility from being built, as it
  63. requires the PAM library, which isn't available in the chroot
  64. environment.</para>
  65. </listitem>
  66. </varlistentry>
  67. </variablelist>
  68. <para>Compile the package:</para>
  69. <screen><userinput remap="make">make</userinput></screen>
  70. <para>To test the results, issue:</para>
  71. <screen><userinput remap="test">make check</userinput></screen>
  72. <para>Install the package:</para>
  73. <screen><userinput remap="install">make install</userinput></screen>
  74. <note>
  75. <para>For some languages (e.g., Belarusian) the Kbd package doesn't
  76. provide a useful keymap where the stock <quote>by</quote> keymap assumes
  77. the ISO-8859-5 encoding, and the CP1251 keymap is normally used. Users of
  78. such languages have to download working keymaps separately.</para>
  79. </note>
  80. <!--
  81. <para>Some of the scripts in the LFS-Bootscripts package depend on
  82. <command>kbd_mode</command>, <command>loadkeys</command>,
  83. <command>openvt</command>, and
  84. <command>setfont</command>. As <filename class="directory">/usr</filename>
  85. may not be available during the early stages of booting, those binaries
  86. need to be on the root partition:</para>
  87. <screen><userinput remap="install">mv -v /usr/bin/{kbd_mode,loadkeys,openvt,setfont} /bin</userinput></screen>
  88. -->
  89. <para>If desired, install the documentation:</para>
  90. <screen><userinput remap="install">mkdir -v /usr/share/doc/kbd-&kbd-version;
  91. cp -R -v docs/doc/* /usr/share/doc/kbd-&kbd-version;</userinput></screen>
  92. </sect2>
  93. <sect2 id="contents-kbd" role="content">
  94. <title>Contents of Kbd</title>
  95. <segmentedlist>
  96. <segtitle>Installed programs</segtitle>
  97. <segtitle>Installed directories</segtitle>
  98. <seglistitem>
  99. <seg>chvt, deallocvt, dumpkeys, fgconsole, getkeycodes, kbdinfo,
  100. kbd_mode, kbdrate, loadkeys, loadunimap,
  101. mapscrn, openvt, psfaddtable (link to psfxtable), psfgettable (link to
  102. psfxtable), psfstriptable (link to psfxtable), psfxtable, <!--resizecons,-->
  103. setfont, setkeycodes, setleds, setmetamode, setvtrgb,
  104. showconsolefont, showkey, unicode_start, and unicode_stop</seg>
  105. <seg>/usr/share/consolefonts, /usr/share/consoletrans, /usr/share/keymaps,
  106. /usr/share/doc/kbd-&kbd-version;, and /usr/share/unimaps</seg>
  107. </seglistitem>
  108. </segmentedlist>
  109. <variablelist>
  110. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  111. <?dbfo list-presentation="list"?>
  112. <?dbhtml list-presentation="table"?>
  113. <varlistentry id="chvt">
  114. <term><command>chvt</command></term>
  115. <listitem>
  116. <para>Changes the foreground virtual terminal</para>
  117. <indexterm zone="ch-system-kbd chvt">
  118. <primary sortas="b-chvt">chvt</primary>
  119. </indexterm>
  120. </listitem>
  121. </varlistentry>
  122. <varlistentry id="deallocvt">
  123. <term><command>deallocvt</command></term>
  124. <listitem>
  125. <para>Deallocates unused virtual terminals</para>
  126. <indexterm zone="ch-system-kbd deallocvt">
  127. <primary sortas="b-deallocvt">deallocvt</primary>
  128. </indexterm>
  129. </listitem>
  130. </varlistentry>
  131. <varlistentry id="dumpkeys">
  132. <term><command>dumpkeys</command></term>
  133. <listitem>
  134. <para>Dumps the keyboard translation tables</para>
  135. <indexterm zone="ch-system-kbd dumpkeys">
  136. <primary sortas="b-dumpkeys">dumpkeys</primary>
  137. </indexterm>
  138. </listitem>
  139. </varlistentry>
  140. <varlistentry id="fgconsole">
  141. <term><command>fgconsole</command></term>
  142. <listitem>
  143. <para>Prints the number of the active virtual terminal</para>
  144. <indexterm zone="ch-system-kbd fgconsole">
  145. <primary sortas="b-fgconsole">fgconsole</primary>
  146. </indexterm>
  147. </listitem>
  148. </varlistentry>
  149. <varlistentry id="getkeycodes">
  150. <term><command>getkeycodes</command></term>
  151. <listitem>
  152. <para>Prints the kernel scancode-to-keycode mapping table</para>
  153. <indexterm zone="ch-system-kbd getkeycodes">
  154. <primary sortas="b-getkeycodes">getkeycodes</primary>
  155. </indexterm>
  156. </listitem>
  157. </varlistentry>
  158. <varlistentry id="kbdinfo">
  159. <term><command>kbdinfo</command></term>
  160. <listitem>
  161. <para>Obtains information about the status of a console</para>
  162. <indexterm zone="ch-system-kbd kbdinfo">
  163. <primary sortas="b-kbdinfo">kbdinfo</primary>
  164. </indexterm>
  165. </listitem>
  166. </varlistentry>
  167. <varlistentry id="kbd_mode">
  168. <term><command>kbd_mode</command></term>
  169. <listitem>
  170. <para>Reports or sets the keyboard mode</para>
  171. <indexterm zone="ch-system-kbd kbd_mode">
  172. <primary sortas="b-kbd_mode">kbd_mode</primary>
  173. </indexterm>
  174. </listitem>
  175. </varlistentry>
  176. <varlistentry id="kbdrate">
  177. <term><command>kbdrate</command></term>
  178. <listitem>
  179. <para>Sets the keyboard repeat and delay rates</para>
  180. <indexterm zone="ch-system-kbd kbdrate">
  181. <primary sortas="b-kbdrate">kbdrate</primary>
  182. </indexterm>
  183. </listitem>
  184. </varlistentry>
  185. <varlistentry id="loadkeys">
  186. <term><command>loadkeys</command></term>
  187. <listitem>
  188. <para>Loads the keyboard translation tables</para>
  189. <indexterm zone="ch-system-kbd loadkeys">
  190. <primary sortas="b-loadkeys">loadkeys</primary>
  191. </indexterm>
  192. </listitem>
  193. </varlistentry>
  194. <varlistentry id="loadunimap">
  195. <term><command>loadunimap</command></term>
  196. <listitem>
  197. <para>Loads the kernel unicode-to-font mapping table</para>
  198. <indexterm zone="ch-system-kbd loadunimap">
  199. <primary sortas="b-loadunimap">loadunimap</primary>
  200. </indexterm>
  201. </listitem>
  202. </varlistentry>
  203. <varlistentry id="mapscrn">
  204. <term><command>mapscrn</command></term>
  205. <listitem>
  206. <para>An obsolete program that used to load a user-defined output
  207. character mapping table into the console driver; this is now done
  208. by <command>setfont</command></para>
  209. <indexterm zone="ch-system-kbd mapscrn">
  210. <primary sortas="b-mapscrn">mapscrn</primary>
  211. </indexterm>
  212. </listitem>
  213. </varlistentry>
  214. <varlistentry id="openvt">
  215. <term><command>openvt</command></term>
  216. <listitem>
  217. <para>Starts a program on a new virtual terminal (VT)</para>
  218. <indexterm zone="ch-system-kbd openvt">
  219. <primary sortas="b-openvt">openvt</primary>
  220. </indexterm>
  221. </listitem>
  222. </varlistentry>
  223. <varlistentry id="psfaddtable">
  224. <term><command>psfaddtable</command></term>
  225. <listitem>
  226. <para>Adds a Unicode character table to a console font</para>
  227. <indexterm zone="ch-system-kbd psfaddtable">
  228. <primary sortas="b-psfaddtable">psfaddtable</primary>
  229. </indexterm>
  230. </listitem>
  231. </varlistentry>
  232. <varlistentry id="psfgettable">
  233. <term><command>psfgettable</command></term>
  234. <listitem>
  235. <para>Extracts the embedded Unicode character table from a console
  236. font</para>
  237. <indexterm zone="ch-system-kbd psfgettable">
  238. <primary sortas="b-psfgettable">psfgettable</primary>
  239. </indexterm>
  240. </listitem>
  241. </varlistentry>
  242. <varlistentry id="psfstriptable">
  243. <term><command>psfstriptable</command></term>
  244. <listitem>
  245. <para>Removes the embedded Unicode character table from a console
  246. font</para>
  247. <indexterm zone="ch-system-kbd psfstriptable">
  248. <primary sortas="b-psfstriptable">psfstriptable</primary>
  249. </indexterm>
  250. </listitem>
  251. </varlistentry>
  252. <varlistentry id="psfxtable">
  253. <term><command>psfxtable</command></term>
  254. <listitem>
  255. <para>Handles Unicode character tables for console fonts</para>
  256. <indexterm zone="ch-system-kbd psfxtable">
  257. <primary sortas="b-psfxtable">psfxtable</primary>
  258. </indexterm>
  259. </listitem>
  260. </varlistentry>
  261. <varlistentry id="setfont">
  262. <term><command>setfont</command></term>
  263. <listitem>
  264. <para>Changes the Enhanced Graphic Adapter (EGA) and Video Graphics
  265. Array (VGA) fonts on the console</para>
  266. <indexterm zone="ch-system-kbd setfont">
  267. <primary sortas="b-setfont">setfont</primary>
  268. </indexterm>
  269. </listitem>
  270. </varlistentry>
  271. <varlistentry id="setkeycodes">
  272. <term><command>setkeycodes</command></term>
  273. <listitem>
  274. <para>Loads kernel scancode-to-keycode mapping table entries; this is
  275. useful if there are unusual keys on the keyboard</para>
  276. <indexterm zone="ch-system-kbd setkeycodes">
  277. <primary sortas="b-setkeycodes">setkeycodes</primary>
  278. </indexterm>
  279. </listitem>
  280. </varlistentry>
  281. <varlistentry id="setleds">
  282. <term><command>setleds</command></term>
  283. <listitem>
  284. <para>Sets the keyboard flags and Light Emitting Diodes (LEDs)</para>
  285. <indexterm zone="ch-system-kbd setleds">
  286. <primary sortas="b-setleds">setleds</primary>
  287. </indexterm>
  288. </listitem>
  289. </varlistentry>
  290. <varlistentry id="setmetamode">
  291. <term><command>setmetamode</command></term>
  292. <listitem>
  293. <para>Defines the keyboard meta-key handling</para>
  294. <indexterm zone="ch-system-kbd setmetamode">
  295. <primary sortas="b-setmetamode">setmetamode</primary>
  296. </indexterm>
  297. </listitem>
  298. </varlistentry>
  299. <varlistentry id="setvtrgb">
  300. <term><command>setvtrgb</command></term>
  301. <listitem>
  302. <para>Sets the console color map in all virtual terminals</para>
  303. <indexterm zone="ch-system-kbd setvtrgb">
  304. <primary sortas="b-setvtrgb">setvtrgb</primary>
  305. </indexterm>
  306. </listitem>
  307. </varlistentry>
  308. <varlistentry id="showconsolefont">
  309. <term><command>showconsolefont</command></term>
  310. <listitem>
  311. <para>Shows the current EGA/VGA console screen font</para>
  312. <indexterm zone="ch-system-kbd showconsolefont">
  313. <primary sortas="b-showconsolefont">showconsolefont</primary>
  314. </indexterm>
  315. </listitem>
  316. </varlistentry>
  317. <varlistentry id="showkey">
  318. <term><command>showkey</command></term>
  319. <listitem>
  320. <para>Reports the scancodes, keycodes, and ASCII codes of the keys
  321. pressed on the keyboard</para>
  322. <indexterm zone="ch-system-kbd showkey">
  323. <primary sortas="b-showkey">showkey</primary>
  324. </indexterm>
  325. </listitem>
  326. </varlistentry>
  327. <varlistentry id="unicode_start">
  328. <term><command>unicode_start</command></term>
  329. <listitem>
  330. <para>Puts the keyboard and console in UNICODE mode [Don't use this
  331. program unless your keymap file is in the ISO-8859-1 encoding. For
  332. other encodings, this utility produces incorrect results.]</para>
  333. <indexterm zone="ch-system-kbd unicode_start">
  334. <primary sortas="b-unicode_start">unicode_start</primary>
  335. </indexterm>
  336. </listitem>
  337. </varlistentry>
  338. <varlistentry id="unicode_stop">
  339. <term><command>unicode_stop</command></term>
  340. <listitem>
  341. <para>Reverts keyboard and console from UNICODE mode</para>
  342. <indexterm zone="ch-system-kbd unicode_stop">
  343. <primary sortas="b-unicode_stop">unicode_stop</primary>
  344. </indexterm>
  345. </listitem>
  346. </varlistentry>
  347. </variablelist>
  348. </sect2>
  349. </sect1>