kbd.xml 9.8 KB

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