1
0

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