kbd.xml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-kbd" xreflabel="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>12 MB</seg></seglistitem>
  16. </segmentedlist>
  17. <segmentedlist>
  18. <segtitle>Kbd installation depends on</segtitle>
  19. <seglistitem><seg>Bash, Binutils, Bison, Coreutils,
  20. Diffutils, Flex, GCC, Gettext, Glibc, Grep, Gzip, M4, Make, Sed</seg></seglistitem>
  21. </segmentedlist>
  22. </sect2>
  23. <sect2 role="installation">
  24. <title>Installation of Kbd</title>
  25. <para>Prepare Kbd for compilation:</para>
  26. <screen><userinput>./configure</userinput></screen>
  27. <para>Compile the package:</para>
  28. <screen><userinput>make</userinput></screen>
  29. <para>Now install it:</para>
  30. <screen><userinput>make install</userinput></screen>
  31. </sect2>
  32. <!-- The "Configuring your keyboard" section has been moved to
  33. Chapter 7 and renamed to "Configuring Linux console" -->
  34. <sect2 id="contents-kbd" role="content"><title>Contents of Kbd</title>
  35. <segmentedlist>
  36. <segtitle>Installed programs</segtitle>
  37. <seglistitem><seg>chvt, deallocvt, dumpkeys,
  38. fgconsole, getkeycodes, getunimap, kbd_mode, kbdrate, loadkeys, loadunimap,
  39. mapscrn, openvt, psfaddtable (link to psfxtable), psfgettable (link to
  40. psfxtable), psfstriptable (link to psfxtable), psfxtable, resizecons,
  41. setfont, setkeycodes, setleds, setlogcons, setmetamode, setvesablank,
  42. showconsolefont, showkey, unicode_start and unicode_stop</seg></seglistitem>
  43. </segmentedlist>
  44. <variablelist><title>Short descriptions</title>
  45. <varlistentry id="chvt">
  46. <term><command>chvt</command></term>
  47. <listitem>
  48. <indexterm zone="ch-system-kbd chvt"><primary sortas="b-chvt">chvt</primary></indexterm>
  49. <para>changes the foreground virtual terminal.</para>
  50. </listitem>
  51. </varlistentry>
  52. <varlistentry id="deallocvt">
  53. <term><command>deallocvt</command></term>
  54. <listitem>
  55. <indexterm zone="ch-system-kbd deallocvt"><primary sortas="b-deallocvt">deallocvt</primary></indexterm>
  56. <para>deallocates unused virtual terminals.</para>
  57. </listitem>
  58. </varlistentry>
  59. <varlistentry id="dumpkeys">
  60. <term><command>dumpkeys</command></term>
  61. <listitem>
  62. <indexterm zone="ch-system-kbd dumpkeys"><primary sortas="b-dumpkeys">dumpkeys</primary></indexterm>
  63. <para>dumps the keyboard translation tables.</para>
  64. </listitem>
  65. </varlistentry>
  66. <varlistentry id="fgconsole">
  67. <term><command>fgconsole</command></term>
  68. <listitem>
  69. <indexterm zone="ch-system-kbd fgconsole"><primary sortas="b-fgconsole">fgconsole</primary></indexterm>
  70. <para>prints the number of the active virtual terminal.</para>
  71. </listitem>
  72. </varlistentry>
  73. <varlistentry id="getkeycodes">
  74. <term><command>getkeycodes</command></term>
  75. <listitem>
  76. <indexterm zone="ch-system-kbd getkeycodes"><primary sortas="b-getkeycodes">getkeycodes</primary></indexterm>
  77. <para>prints the kernel scancode-to-keycode mapping table.</para>
  78. </listitem>
  79. </varlistentry>
  80. <varlistentry id="getunimap">
  81. <term><command>getunimap</command></term>
  82. <listitem>
  83. <indexterm zone="ch-system-kbd getunimap"><primary sortas="b-getunimap">getunimap</primary></indexterm>
  84. <para>prints the currently used unimap.</para>
  85. </listitem>
  86. </varlistentry>
  87. <varlistentry id="kbd_mode">
  88. <term><command>kbd_mode</command></term>
  89. <listitem>
  90. <indexterm zone="ch-system-kbd kbd_mode"><primary sortas="b-kbd_mode">kbd_mode</primary></indexterm>
  91. <para>reports or sets the keyboard mode.</para>
  92. </listitem>
  93. </varlistentry>
  94. <varlistentry id="kbdrate">
  95. <term><command>kbdrate</command></term>
  96. <listitem>
  97. <indexterm zone="ch-system-kbd kbdrate"><primary sortas="b-kbdrate">kbdrate</primary></indexterm>
  98. <para>sets the keyboard repeat and delay rates.</para>
  99. </listitem>
  100. </varlistentry>
  101. <varlistentry id="loadkeys">
  102. <term><command>loadkeys</command></term>
  103. <listitem>
  104. <indexterm zone="ch-system-kbd loadkeys"><primary sortas="b-loadkeys">loadkeys</primary></indexterm>
  105. <para>loads the keyboard translation tables.</para>
  106. </listitem>
  107. </varlistentry>
  108. <varlistentry id="loadunimap">
  109. <term><command>loadunimap</command></term>
  110. <listitem>
  111. <indexterm zone="ch-system-kbd loadunimap"><primary sortas="b-loadunimap">loadunimap</primary></indexterm>
  112. <para>loads the kernel unicode-to-font mapping table.</para>
  113. </listitem>
  114. </varlistentry>
  115. <varlistentry id="mapscrn">
  116. <term><command>mapscrn</command></term>
  117. <listitem>
  118. <indexterm zone="ch-system-kbd mapscrn"><primary sortas="b-mapscrn">mapscrn</primary></indexterm>
  119. <para>is an obsolete program that used to load
  120. a user-defined output character mapping table into the console driver. This is
  121. now done by <command>setfont</command>.</para>
  122. </listitem>
  123. </varlistentry>
  124. <varlistentry id="openvt">
  125. <term><command>openvt</command></term>
  126. <listitem>
  127. <indexterm zone="ch-system-kbd openvt"><primary sortas="b-openvt">openvt</primary></indexterm>
  128. <para>starts a program on a new virtual terminal (VT).</para>
  129. </listitem>
  130. </varlistentry>
  131. <varlistentry id="psf">
  132. <term><command>psf*</command></term>
  133. <listitem>
  134. <indexterm zone="ch-system-kbd psf"><primary sortas="b-psf*">psf*</primary></indexterm>
  135. <para>are a set of tools for handling Unicode character tables for console fonts.</para>
  136. </listitem>
  137. </varlistentry>
  138. <varlistentry id="resizecons">
  139. <term><command>resizecons</command></term>
  140. <listitem>
  141. <indexterm zone="ch-system-kbd resizecons"><primary sortas="b-resizecons">resizecons</primary></indexterm>
  142. <para>changes the kernel idea of the console size.</para>
  143. </listitem>
  144. </varlistentry>
  145. <varlistentry id="setfont">
  146. <term><command>setfont</command></term>
  147. <listitem>
  148. <indexterm zone="ch-system-kbd setfont"><primary sortas="b-setfont">setfont</primary></indexterm>
  149. <para>lets you change the EGA/VGA fonts on the console.</para>
  150. </listitem>
  151. </varlistentry>
  152. <varlistentry id="setkeycodes">
  153. <term><command>setkeycodes</command></term>
  154. <listitem>
  155. <indexterm zone="ch-system-kbd setkeycodes"><primary sortas="b-setkeycodes">setkeycodes</primary></indexterm>
  156. <para>loads kernel scancode-to-keycode
  157. mapping table entries, useful if you have some unusual keys on your keyboard.</para>
  158. </listitem>
  159. </varlistentry>
  160. <varlistentry id="setleds">
  161. <term><command>setleds</command></term>
  162. <listitem>
  163. <indexterm zone="ch-system-kbd setleds"><primary sortas="b-setleds">setleds</primary></indexterm>
  164. <para>sets the keyboard flags and LEDs. Many
  165. people find it useful to have <quote>Num Lock</quote> on by default, <command>setleds +num</command> achieves this.</para>
  166. </listitem>
  167. </varlistentry>
  168. <varlistentry id="setlogcons">
  169. <term><command>setlogcons</command></term>
  170. <listitem>
  171. <indexterm zone="ch-system-kbd setlogcons"><primary sortas="b-setlogcons">setlogcons</primary></indexterm>
  172. <para>sends kernel messages to the console.</para>
  173. </listitem>
  174. </varlistentry>
  175. <varlistentry id="setmetamode">
  176. <term><command>setmetamode</command></term>
  177. <listitem>
  178. <indexterm zone="ch-system-kbd setmetamode"><primary sortas="b-setmetamode">setmetamode</primary></indexterm>
  179. <para>defines the keyboard meta-key handling.</para>
  180. </listitem>
  181. </varlistentry>
  182. <varlistentry id="setvesablank">
  183. <term><command>setvesablank</command></term>
  184. <listitem>
  185. <indexterm zone="ch-system-kbd setvesablank"><primary sortas="b-setvesablank">setvesablank</primary></indexterm>
  186. <para>lets you fiddle with the built-in
  187. hardware screensaver (no toasters, just a blank screen).</para>
  188. </listitem>
  189. </varlistentry>
  190. <varlistentry id="showconsolefont">
  191. <term><command>showconsolefont</command></term>
  192. <listitem>
  193. <indexterm zone="ch-system-kbd showconsolefont"><primary sortas="b-showconsolefont">showconsolefont</primary></indexterm>
  194. <para>shows the current EGA/VGA console screen font.</para>
  195. </listitem>
  196. </varlistentry>
  197. <varlistentry id="showkey">
  198. <term><command>showkey</command></term>
  199. <listitem>
  200. <indexterm zone="ch-system-kbd showkey"><primary sortas="b-showkey">showkey</primary></indexterm>
  201. <para>reports the scancodes and keycodes and
  202. ASCII codes of the keys pressed on the keyboard.</para>
  203. </listitem>
  204. </varlistentry>
  205. <varlistentry id="unicode_start">
  206. <term><command>unicode_start</command></term>
  207. <listitem>
  208. <indexterm zone="ch-system-kbd unicode_start"><primary sortas="b-unicode_start">unicode_start</primary></indexterm>
  209. <para>puts the keyboard and console in UNICODE mode. Never use it on LFS,
  210. because applications are not configured to support UNICODE.</para>
  211. </listitem>
  212. </varlistentry>
  213. <varlistentry id="unicode_stop">
  214. <term><command>unicode_stop</command></term>
  215. <listitem>
  216. <indexterm zone="ch-system-kbd unicode_stop"><primary sortas="b-unicode_stop">unicode_stop</primary></indexterm>
  217. <para>reverts keyboard and console from UNICODE mode.</para>
  218. </listitem>
  219. </varlistentry>
  220. </variablelist>
  221. </sect2>
  222. </sect1>