kbd.xml 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. <!ENTITY % patches-entities SYSTEM "../patches.ent">
  5. %general-entities;
  6. %patches-entities;
  7. ]>
  8. <sect1 id="ch-system-kbd" role="wrap">
  9. <title>Kbd-&kbd-version;</title>
  10. <?dbhtml filename="kbd.html"?>
  11. <indexterm zone="ch-system-kbd"><primary sortas="a-Kbd">Kbd</primary></indexterm>
  12. <sect2 role="package"><title/>
  13. <para>The Kbd package contains key-table files and keyboard utilities.</para>
  14. <segmentedlist>
  15. <segtitle>&buildtime;</segtitle>
  16. <segtitle>&diskspace;</segtitle>
  17. <seglistitem><seg>0.1 SBU</seg><seg>11.8 MB</seg></seglistitem>
  18. </segmentedlist>
  19. <segmentedlist>
  20. <segtitle>&dependencies;</segtitle>
  21. <seglistitem><seg>Bash, Binutils, Bison, Coreutils,
  22. Diffutils, Flex, GCC, Gettext, Glibc, Grep, Gzip, M4, Make, and Sed</seg></seglistitem>
  23. </segmentedlist>
  24. </sect2>
  25. <sect2 role="installation">
  26. <title>Installation of Kbd</title>
  27. <para>Patch Kbd to fix a bug in <command>setfont</command> that is triggered
  28. when compiling with GCC-&gcc-version;:</para>
  29. <screen><userinput>patch -Np1 -i ../&kbd-gcc4_fixes-patch;</userinput></screen>
  30. <para>Prepare Kbd for compilation:</para>
  31. <screen><userinput>./configure</userinput></screen>
  32. <para>Compile the package:</para>
  33. <screen><userinput>make</userinput></screen>
  34. <para>Install the package:</para>
  35. <screen><userinput>make install</userinput></screen>
  36. </sect2>
  37. <sect2 id="contents-kbd" role="content"><title>Contents of Kbd</title>
  38. <segmentedlist>
  39. <segtitle>Installed programs</segtitle>
  40. <seglistitem><seg>chvt, deallocvt, dumpkeys,
  41. fgconsole, getkeycodes, getunimap, kbd_mode, kbdrate, loadkeys, loadunimap,
  42. mapscrn, openvt, psfaddtable (link to psfxtable), psfgettable (link to
  43. psfxtable), psfstriptable (link to psfxtable), psfxtable, resizecons,
  44. setfont, setkeycodes, setleds, setlogcons, setmetamode, setvesablank,
  45. showconsolefont, showkey, unicode_start, and unicode_stop</seg></seglistitem>
  46. </segmentedlist>
  47. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  48. <?dbfo list-presentation="list"?>
  49. <?dbhtml list-presentation="table"?>
  50. <varlistentry id="chvt">
  51. <term><command>chvt</command></term>
  52. <listitem>
  53. <para>Changes the foreground virtual terminal</para>
  54. <indexterm zone="ch-system-kbd chvt"><primary sortas="b-chvt">chvt</primary></indexterm>
  55. </listitem>
  56. </varlistentry>
  57. <varlistentry id="deallocvt">
  58. <term><command>deallocvt</command></term>
  59. <listitem>
  60. <para>Deallocates unused virtual terminals</para>
  61. <indexterm zone="ch-system-kbd deallocvt"><primary sortas="b-deallocvt">deallocvt</primary></indexterm>
  62. </listitem>
  63. </varlistentry>
  64. <varlistentry id="dumpkeys">
  65. <term><command>dumpkeys</command></term>
  66. <listitem>
  67. <para>Dumps the keyboard translation tables</para>
  68. <indexterm zone="ch-system-kbd dumpkeys"><primary sortas="b-dumpkeys">dumpkeys</primary></indexterm>
  69. </listitem>
  70. </varlistentry>
  71. <varlistentry id="fgconsole">
  72. <term><command>fgconsole</command></term>
  73. <listitem>
  74. <para>Prints the number of the active virtual terminal</para>
  75. <indexterm zone="ch-system-kbd fgconsole"><primary sortas="b-fgconsole">fgconsole</primary></indexterm>
  76. </listitem>
  77. </varlistentry>
  78. <varlistentry id="getkeycodes">
  79. <term><command>getkeycodes</command></term>
  80. <listitem>
  81. <para>Prints the kernel scancode-to-keycode mapping table</para>
  82. <indexterm zone="ch-system-kbd getkeycodes"><primary sortas="b-getkeycodes">getkeycodes</primary></indexterm>
  83. </listitem>
  84. </varlistentry>
  85. <varlistentry id="getunimap">
  86. <term><command>getunimap</command></term>
  87. <listitem>
  88. <para>Prints the currently used unicode-to-font mapping table</para>
  89. <indexterm zone="ch-system-kbd getunimap"><primary sortas="b-getunimap">getunimap</primary></indexterm>
  90. </listitem>
  91. </varlistentry>
  92. <varlistentry id="kbd_mode">
  93. <term><command>kbd_mode</command></term>
  94. <listitem>
  95. <para>Reports or sets the keyboard mode</para>
  96. <indexterm zone="ch-system-kbd kbd_mode"><primary sortas="b-kbd_mode">kbd_mode</primary></indexterm>
  97. </listitem>
  98. </varlistentry>
  99. <varlistentry id="kbdrate">
  100. <term><command>kbdrate</command></term>
  101. <listitem>
  102. <para>Sets the keyboard repeat and delay rates</para>
  103. <indexterm zone="ch-system-kbd kbdrate"><primary sortas="b-kbdrate">kbdrate</primary></indexterm>
  104. </listitem>
  105. </varlistentry>
  106. <varlistentry id="loadkeys">
  107. <term><command>loadkeys</command></term>
  108. <listitem>
  109. <para>Loads the keyboard translation tables</para>
  110. <indexterm zone="ch-system-kbd loadkeys"><primary sortas="b-loadkeys">loadkeys</primary></indexterm>
  111. </listitem>
  112. </varlistentry>
  113. <varlistentry id="loadunimap">
  114. <term><command>loadunimap</command></term>
  115. <listitem>
  116. <para>Loads the kernel unicode-to-font mapping table</para>
  117. <indexterm zone="ch-system-kbd loadunimap"><primary sortas="b-loadunimap">loadunimap</primary></indexterm>
  118. </listitem>
  119. </varlistentry>
  120. <varlistentry id="mapscrn">
  121. <term><command>mapscrn</command></term>
  122. <listitem>
  123. <para>An obsolete program that used to load
  124. a user-defined output character mapping table into the console driver; this is
  125. now done by <command>setfont</command></para>
  126. <indexterm zone="ch-system-kbd mapscrn"><primary sortas="b-mapscrn">mapscrn</primary></indexterm>
  127. </listitem>
  128. </varlistentry>
  129. <varlistentry id="openvt">
  130. <term><command>openvt</command></term>
  131. <listitem>
  132. <para>Starts a program on a new virtual terminal (VT)</para>
  133. <indexterm zone="ch-system-kbd openvt"><primary sortas="b-openvt">openvt</primary></indexterm>
  134. </listitem>
  135. </varlistentry>
  136. <varlistentry id="psfaddtable">
  137. <term><command>psfaddtable</command></term>
  138. <listitem>
  139. <para>A link to <command>psfxtable</command></para>
  140. <indexterm zone="ch-system-kbd psfaddtable"><primary sortas="b-psfaddtable">psfaddtable</primary></indexterm>
  141. </listitem>
  142. </varlistentry>
  143. <varlistentry id="psfgettable">
  144. <term><command>psfgettable</command></term>
  145. <listitem>
  146. <para>A link to <command>psfxtable</command></para>
  147. <indexterm zone="ch-system-kbd psfgettable"><primary sortas="b-psfgettable">psfgettable</primary></indexterm>
  148. </listitem>
  149. </varlistentry>
  150. <varlistentry id="psfstriptable">
  151. <term><command>psfstriptable</command></term>
  152. <listitem>
  153. <para>A link to <command>psfxtable</command></para>
  154. <indexterm zone="ch-system-kbd psfstriptable"><primary sortas="b-psfstriptable">psfstriptable</primary></indexterm>
  155. </listitem>
  156. </varlistentry>
  157. <varlistentry id="psfxtable">
  158. <term><command>psfxtable</command></term>
  159. <listitem>
  160. <para>Handle Unicode character tables for console fonts</para>
  161. <indexterm zone="ch-system-kbd psfxtable"><primary sortas="b-psfxtable">psfxtable</primary></indexterm>
  162. </listitem>
  163. </varlistentry>
  164. <varlistentry id="resizecons">
  165. <term><command>resizecons</command></term>
  166. <listitem>
  167. <para>Changes the kernel idea of the console size</para>
  168. <indexterm zone="ch-system-kbd resizecons"><primary sortas="b-resizecons">resizecons</primary></indexterm>
  169. </listitem>
  170. </varlistentry>
  171. <varlistentry id="setfont">
  172. <term><command>setfont</command></term>
  173. <listitem>
  174. <para>Changes the Enhanced Graphic Adapter (EGA) and Video Graphics
  175. Array (VGA) fonts on the console</para>
  176. <indexterm zone="ch-system-kbd setfont"><primary sortas="b-setfont">setfont</primary></indexterm>
  177. </listitem>
  178. </varlistentry>
  179. <varlistentry id="setkeycodes">
  180. <term><command>setkeycodes</command></term>
  181. <listitem>
  182. <para>Loads kernel scancode-to-keycode mapping table entries; this is
  183. useful if there are unusual keys on the keyboard</para>
  184. <indexterm zone="ch-system-kbd setkeycodes"><primary sortas="b-setkeycodes">setkeycodes</primary></indexterm>
  185. </listitem>
  186. </varlistentry>
  187. <varlistentry id="setleds">
  188. <term><command>setleds</command></term>
  189. <listitem>
  190. <para>Sets the keyboard flags and Light Emitting Diodes (LEDs)</para>
  191. <indexterm zone="ch-system-kbd setleds"><primary sortas="b-setleds">setleds</primary></indexterm>
  192. </listitem>
  193. </varlistentry>
  194. <varlistentry id="setlogcons">
  195. <term><command>setlogcons</command></term>
  196. <listitem>
  197. <para>Sends kernel messages to the console</para>
  198. <indexterm zone="ch-system-kbd setlogcons"><primary sortas="b-setlogcons">setlogcons</primary></indexterm>
  199. </listitem>
  200. </varlistentry>
  201. <varlistentry id="setmetamode">
  202. <term><command>setmetamode</command></term>
  203. <listitem>
  204. <para>Defines the keyboard meta-key handling</para>
  205. <indexterm zone="ch-system-kbd setmetamode"><primary sortas="b-setmetamode">setmetamode</primary></indexterm>
  206. </listitem>
  207. </varlistentry>
  208. <varlistentry id="setvesablank">
  209. <term><command>setvesablank</command></term>
  210. <listitem>
  211. <para>Lets the user adjust the built-in hardware screensaver (a blank
  212. screen)</para>
  213. <indexterm zone="ch-system-kbd setvesablank"><primary sortas="b-setvesablank">setvesablank</primary></indexterm>
  214. </listitem>
  215. </varlistentry>
  216. <varlistentry id="showconsolefont">
  217. <term><command>showconsolefont</command></term>
  218. <listitem>
  219. <para>Shows the current EGA/VGA console screen font</para>
  220. <indexterm zone="ch-system-kbd showconsolefont"><primary sortas="b-showconsolefont">showconsolefont</primary></indexterm>
  221. </listitem>
  222. </varlistentry>
  223. <varlistentry id="showkey">
  224. <term><command>showkey</command></term>
  225. <listitem>
  226. <para>Reports the scancodes, keycodes, and ASCII codes of the keys
  227. pressed on the keyboard</para>
  228. <indexterm zone="ch-system-kbd showkey"><primary sortas="b-showkey">showkey</primary></indexterm>
  229. </listitem>
  230. </varlistentry>
  231. <varlistentry id="unicode_start">
  232. <term><command>unicode_start</command></term>
  233. <listitem>
  234. <para>Puts the keyboard and console in UNICODE mode. Never use it on LFS,
  235. because applications are not configured to support UNICODE.</para>
  236. <indexterm zone="ch-system-kbd unicode_start"><primary sortas="b-unicode_start">unicode_start</primary></indexterm>
  237. </listitem>
  238. </varlistentry>
  239. <varlistentry id="unicode_stop">
  240. <term><command>unicode_stop</command></term>
  241. <listitem>
  242. <para>Reverts keyboard and console from UNICODE mode</para>
  243. <indexterm zone="ch-system-kbd unicode_stop"><primary sortas="b-unicode_stop">unicode_stop</primary></indexterm>
  244. </listitem>
  245. </varlistentry>
  246. </variablelist>
  247. </sect2>
  248. </sect1>