kbd.xml 14 KB

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