kbd.xml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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"><title>Contents of Kbd</title>
  35. <para><emphasis>Installed programs</emphasis>: chvt, deallocvt, dumpkeys,
  36. fgconsole, getkeycodes, getunimap, kbd_mode, kbdrate, loadkeys, loadunimap,
  37. mapscrn, openvt, psfaddtable (link to psfxtable), psfgettable (link to
  38. psfxtable), psfstriptable (link to psfxtable), psfxtable, resizecons,
  39. setfont, setkeycodes, setleds, setlogcons, setmetamode, setvesablank,
  40. showconsolefont, showkey, unicode_start and unicode_stop</para>
  41. </sect2>
  42. <sect2><title>Short descriptions</title>
  43. <indexterm zone="ch-system-kbd chvt"><primary sortas="b-chvt">chvt</primary></indexterm>
  44. <para id="chvt"><command>chvt</command> changes the foreground virtual terminal.</para>
  45. <indexterm zone="ch-system-kbd deallocvt"><primary sortas="b-deallocvt">deallocvt</primary></indexterm>
  46. <para id="deallocvt"><command>deallocvt</command> deallocates unused virtual terminals.</para>
  47. <indexterm zone="ch-system-kbd dumpkeys"><primary sortas="b-dumpkeys">dumpkeys</primary></indexterm>
  48. <para id="dumpkeys"><command>dumpkeys</command> dumps the keyboard translation tables.</para>
  49. <indexterm zone="ch-system-kbd fgconsole"><primary sortas="b-fgconsole">fgconsole</primary></indexterm>
  50. <para id="fgconsole"><command>fgconsole</command> prints the number of the active virtual terminal.</para>
  51. <indexterm zone="ch-system-kbd getkeycodes"><primary sortas="b-getkeycodes">getkeycodes</primary></indexterm>
  52. <para id="getkeycodes"><command>getkeycodes</command> prints the kernel scancode-to-keycode
  53. mapping table.</para>
  54. <indexterm zone="ch-system-kbd getunimap"><primary sortas="b-getunimap">getunimap</primary></indexterm>
  55. <para id="getunimap"><command>getunimap</command> prints the currently used unimap.</para>
  56. <indexterm zone="ch-system-kbd kbd_mode"><primary sortas="b-kbd_mode">kbd_mode</primary></indexterm>
  57. <para id="kbd_mode"><command>kbd_mode</command> reports or sets the keyboard mode.</para>
  58. <indexterm zone="ch-system-kbd kbdrate"><primary sortas="b-kbdrate">kbdrate</primary></indexterm>
  59. <para id="kbdrate"><command>kbdrate</command> sets the keyboard repeat and delay rates.</para>
  60. <indexterm zone="ch-system-kbd loadkeys"><primary sortas="b-loadkeys">loadkeys</primary></indexterm>
  61. <para id="loadkeys"><command>loadkeys</command> loads the keyboard translation tables.</para>
  62. <indexterm zone="ch-system-kbd loadunimap"><primary sortas="b-loadunimap">loadunimap</primary></indexterm>
  63. <para id="loadunimap"><command>loadunimap</command> loads the kernel unicode-to-font mapping table.</para>
  64. <indexterm zone="ch-system-kbd mapscrn"><primary sortas="b-mapscrn">mapscrn</primary></indexterm>
  65. <para id="mapscrn"><command>mapscrn</command> is an obsolete program that used to load
  66. a user-defined output character mapping table into the console driver. This is
  67. now done by setfont.</para>
  68. <indexterm zone="ch-system-kbd openvt"><primary sortas="b-openvt">openvt</primary></indexterm>
  69. <para id="openvt"><command>openvt</command> starts a program on a new virtual terminal (VT).</para>
  70. <indexterm zone="ch-system-kbd psf"><primary sortas="b-psf*">psf*</primary></indexterm>
  71. <para id="psf"><command>psf*</command> are a set of tools for handling Unicode
  72. character tables for console fonts.</para>
  73. <indexterm zone="ch-system-kbd resizecons"><primary sortas="b-resizecons">resizecons</primary></indexterm>
  74. <para id="resizecons"><command>resizecons</command> changes the kernel idea of the console size.</para>
  75. <indexterm zone="ch-system-kbd setfont"><primary sortas="b-setfont">setfont</primary></indexterm>
  76. <para id="setfont"><command>setfont</command> lets you change the EGA/VGA fonts on the console.</para>
  77. <indexterm zone="ch-system-kbd setkeycodes"><primary sortas="b-setkeycodes">setkeycodes</primary></indexterm>
  78. <para id="setkeycodes"><command>setkeycodes</command> loads kernel scancode-to-keycode
  79. mapping table entries, useful if you have some unusual keys on your keyboard.</para>
  80. <indexterm zone="ch-system-kbd setleds"><primary sortas="b-setleds">setleds</primary></indexterm>
  81. <para id="setleds"><command>setleds</command> sets the keyboard flags and LEDs. Many
  82. people find it useful to have "Num Lock" on by default, setleds +num achieves this.</para>
  83. <indexterm zone="ch-system-kbd setlogcons"><primary sortas="b-setlogcons">setlogcons</primary></indexterm>
  84. <para id="setlogcons"><command>setlogcons</command> sends kernel messages to the console.</para>
  85. <indexterm zone="ch-system-kbd setmetamode"><primary sortas="b-setmetamode">setmetamode</primary></indexterm>
  86. <para id="setmetamode"><command>setmetamode</command> defines the keyboard meta-key handling.</para>
  87. <indexterm zone="ch-system-kbd setvesablank"><primary sortas="b-setvesablank">setvesablank</primary></indexterm>
  88. <para id="setvesablank"><command>setvesablank</command> lets you fiddle with the built-in
  89. hardware screensaver (no toasters, just a blank screen).</para>
  90. <indexterm zone="ch-system-kbd showconsolefont"><primary sortas="b-showconsolefont">showconsolefont</primary></indexterm>
  91. <para id="showconsolefont"><command>showconsolefont</command> shows the current EGA/VGA console
  92. screen font.</para>
  93. <indexterm zone="ch-system-kbd showkey"><primary sortas="b-showkey">showkey</primary></indexterm>
  94. <para id="showkey"><command>showkey</command> reports the scancodes and keycodes and
  95. ASCII codes of the keys pressed on the keyboard.</para>
  96. <indexterm zone="ch-system-kbd unicode_start"><primary sortas="b-unicode_start">unicode_start</primary></indexterm>
  97. <para id="unicode_start"><command>unicode_start</command> puts the keyboard and console in
  98. UNICODE mode. Never use it on LFS, because applications are not
  99. configured to support UNICODE.</para>
  100. <indexterm zone="ch-system-kbd unicode_stop"><primary sortas="b-unicode_stop">unicode_stop</primary></indexterm>
  101. <para id="unicode_stop"><command>unicode_stop</command> reverts keyboard and console from
  102. UNICODE mode.</para>
  103. </sect2>
  104. </sect1>