kbd.xml 14 KB

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