379 lines
7.9 KiB
HTML
379 lines
7.9 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of LOADKEYS</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>LOADKEYS</H1>
|
|
Section: User Commands (1)<BR>Updated: 6 Feb 1994<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
loadkeys - load keyboard translation tables
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>loadkeys</B>
|
|
|
|
[
|
|
<I>-a --ascii</I>
|
|
|
|
] [
|
|
[
|
|
<I>-b --bkeymap</I>
|
|
|
|
] [
|
|
<I>-c --clearcompose</I>
|
|
|
|
] [
|
|
<I>-C '<FILE>'</I>
|
|
|
|
|
|
|
<I>--console=<FILE></I>
|
|
|
|
] [
|
|
<I>-d --default</I>
|
|
|
|
] [
|
|
<I>-h --help</I>
|
|
|
|
] [
|
|
<I>-m --mktable</I>
|
|
|
|
] [
|
|
<I>-p --parse</I>
|
|
|
|
] [
|
|
<I>-q --quiet</I>
|
|
|
|
] [
|
|
<I>-s --clearstrings</I>
|
|
|
|
] [
|
|
<I>-u --unicode</I>
|
|
|
|
] [
|
|
<I>-v --verbose</I>
|
|
|
|
] [
|
|
<I>-V --version</I>
|
|
|
|
] [
|
|
<I>filename...</I>
|
|
|
|
]
|
|
<P>
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
|
|
The program
|
|
<B>loadkeys</B>
|
|
|
|
reads the file or files specified by
|
|
<I>filename...</I>.
|
|
|
|
Its main purpose is to load the kernel keymap for the console.
|
|
You can specify console device by the
|
|
<I>-C </I>
|
|
|
|
(or
|
|
<I>--console</I>
|
|
|
|
) option.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>RESET TO DEFAULT</H2>
|
|
|
|
If the
|
|
<I>-d</I>
|
|
|
|
(or
|
|
<I>--default</I>
|
|
|
|
) option is given,
|
|
<B>loadkeys</B>
|
|
|
|
loads a default keymap, probably the file
|
|
<I>defkeymap.map</I>
|
|
|
|
either in
|
|
<I>/usr/share/keymaps</I>
|
|
|
|
or in
|
|
<I>/usr/src/linux/drivers/char</I>.
|
|
|
|
(Probably the former was user-defined, while the latter
|
|
is a qwerty keyboard map for PCs - maybe not what was desired.)
|
|
Sometimes, with a strange keymap loaded (with the minus on
|
|
some obscure unknown modifier combination) it is easier to
|
|
type `loadkeys defkeymap'.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>LOAD KERNEL KEYMAP</H2>
|
|
|
|
The main function of
|
|
<B>loadkeys</B>
|
|
|
|
is to load or modify the keyboard driver's translation tables.
|
|
When specifying the file names, standard input can be denoted
|
|
by dash (-). If no file is specified, the data is read from
|
|
the standard input.
|
|
<P>
|
|
|
|
For many countries and keyboard types appropriate keymaps
|
|
are available already, and a command like `loadkeys uk' might
|
|
do what you want. On the other hand, it is easy to construct
|
|
one's own keymap. The user has to tell what symbols belong
|
|
to each key. She can find the keycode for a key by use of
|
|
<B><A HREF="/cgi-bin/man/man2html?1+showkey">showkey</A></B>(1),
|
|
|
|
while the keymap format is given in
|
|
<B><A HREF="/cgi-bin/man/man2html?5+keymaps">keymaps</A></B>(5)
|
|
|
|
and can also be seen from the output of
|
|
<B><A HREF="/cgi-bin/man/man2html?1+dumpkeys">dumpkeys</A></B>(1).
|
|
|
|
<A NAME="lbAG"> </A>
|
|
<H2>LOAD KERNEL ACCENT TABLE</H2>
|
|
|
|
If the input file does not contain any compose key definitions,
|
|
the kernel accent table is left unchanged, unless the
|
|
<I>-c</I>
|
|
|
|
(or
|
|
<I>--clearcompose</I>
|
|
|
|
) option is given, in which case the kernel accent table is emptied.
|
|
If the input file does contain compose key definitions, then all
|
|
old definitions are removed, and replaced by the specified new entries.
|
|
The kernel accent table is a sequence of (by default 68) entries
|
|
describing how dead diacritical signs and compose keys behave.
|
|
For example, a line
|
|
<P>
|
|
|
|
<DL COMPACT><DT id="1"><DD>
|
|
compose ',' 'c' to ccedilla
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
means that <ComposeKey><,><c> must be combined to <ccedilla>.
|
|
The current content of this table can be see
|
|
using `dumpkeys --compose-only'.
|
|
<A NAME="lbAH"> </A>
|
|
<H2>LOAD KERNEL STRING TABLE</H2>
|
|
|
|
The option
|
|
<I>-s</I>
|
|
|
|
(or
|
|
<I>--clearstrings</I>
|
|
|
|
) clears the kernel string table. If this option is not given,
|
|
<B>loadkeys</B>
|
|
|
|
will only add or replace strings, not remove them.
|
|
(Thus, the option -s is required to reach a well-defined state.)
|
|
The kernel string table is a sequence of strings
|
|
with names like F31. One can make function key F5 (on
|
|
an ordinary PC keyboard) produce the text `Hello!',
|
|
and Shift+F5 `Goodbye!' using lines
|
|
<P>
|
|
|
|
<DL COMPACT><DT id="2"><DD>
|
|
keycode 63 = F70 F71
|
|
<BR>
|
|
|
|
string F70 = "Hello!"
|
|
<BR>
|
|
|
|
string F71 = "Goodbye!"
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
in the keymap.
|
|
The default bindings for the function keys are certain
|
|
escape sequences mostly inspired by the VT100 terminal.
|
|
<A NAME="lbAI"> </A>
|
|
<H2>CREATE KERNEL SOURCE TABLE</H2>
|
|
|
|
If the
|
|
<I>-m</I>
|
|
|
|
(or
|
|
<I>--mktable</I>
|
|
|
|
) option is given
|
|
<B>loadkeys</B>
|
|
|
|
prints to the standard output a file that may be used as
|
|
<I>/usr/src/linux/drivers/char/defkeymap.c,</I>
|
|
|
|
specifying the default key bindings for a kernel
|
|
(and does not modify the current keymap).
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>CREATE BINARY KEYMAP</H2>
|
|
|
|
If the
|
|
<I>-b</I>
|
|
|
|
(or
|
|
<I>--bkeymap</I>
|
|
|
|
) option is given
|
|
<B>loadkeys</B>
|
|
|
|
prints to the standard output a file that may be used as a binary
|
|
keymap as expected by Busybox
|
|
<B>loadkmap</B>
|
|
|
|
command (and does not modify the current keymap).
|
|
<A NAME="lbAK"> </A>
|
|
<H2>UNICODE MODE</H2>
|
|
|
|
<B>loadkeys</B>
|
|
|
|
automatically detects whether the console is in Unicode or
|
|
ASCII (XLATE) mode. When a keymap is loaded, literal
|
|
keysyms (such as
|
|
<B>section</B>)
|
|
|
|
are resolved accordingly; numerical keysyms are converted to
|
|
fit the current console mode, regardless of the way they are
|
|
specified (decimal, octal, hexadecimal or Unicode).
|
|
<P>
|
|
|
|
The
|
|
<I>-u</I>
|
|
|
|
(or
|
|
<I>--unicode</I>)
|
|
|
|
switch forces
|
|
<B>loadkeys</B>
|
|
|
|
to convert all keymaps to Unicode. If the keyboard is in a
|
|
non-Unicode mode, such as XLATE,
|
|
<B>loadkeys</B>
|
|
|
|
will change it to Unicode for the time of its execution. A
|
|
warning message will be printed in this case.
|
|
<P>
|
|
|
|
It is recommended to run
|
|
<B><A HREF="/cgi-bin/man/man2html?1+kbd_mode">kbd_mode</A></B>(1)
|
|
|
|
before
|
|
<B>loadkeys</B>
|
|
|
|
instead of using the
|
|
<I>-u</I>
|
|
|
|
option.
|
|
<A NAME="lbAL"> </A>
|
|
<H2>OTHER OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="3"><B>-a --ascii</B>
|
|
|
|
<DD>
|
|
Force conversion to ASCII.
|
|
<DT id="4"><B>-h --help</B>
|
|
|
|
<DD>
|
|
<B>loadkeys</B>
|
|
|
|
prints its version number and a short usage message to the programs
|
|
standard error output and exits.
|
|
<DT id="5"><B>-p --parse</B>
|
|
|
|
<DD>
|
|
<B>loadkeys</B>
|
|
|
|
searchs and parses keymap without action.
|
|
<DT id="6"><B>-q --quiet</B>
|
|
|
|
<DD>
|
|
<B>loadkeys</B>
|
|
|
|
suppresses all normal output.
|
|
<DT id="7"><B>-V --version</B>
|
|
|
|
<DD>
|
|
<B>loadkeys</B>
|
|
|
|
prints version number and exits.
|
|
</DL>
|
|
<A NAME="lbAM"> </A>
|
|
<H2>WARNING</H2>
|
|
|
|
Note that anyone having read access to
|
|
<B>/dev/console</B>
|
|
|
|
can run
|
|
<B>loadkeys</B>
|
|
|
|
and thus change the keyboard layout, possibly making it unusable. Note
|
|
that the keyboard translation table is common for all the virtual
|
|
consoles, so any changes to the keyboard bindings affect all the virtual
|
|
consoles simultaneously.
|
|
<P>
|
|
|
|
Note that because the changes affect all the virtual consoles, they also
|
|
outlive your session. This means that even at the login prompt the key
|
|
bindings may not be what the user expects.
|
|
<A NAME="lbAN"> </A>
|
|
<H2>FILES</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="8"><B>/usr/share/keymaps</B>
|
|
|
|
<DD>
|
|
default directory for keymaps
|
|
</DL>
|
|
<P>
|
|
|
|
<DL COMPACT>
|
|
<DT id="9"><B>/usr/src/linux/drivers/char/defkeymap.map</B>
|
|
|
|
<DD>
|
|
default kernel keymap
|
|
</DL>
|
|
<A NAME="lbAO"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+dumpkeys">dumpkeys</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?5+keymaps">keymaps</A></B>(5)
|
|
|
|
<P>
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="10"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="11"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="12"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="13"><A HREF="#lbAE">RESET TO DEFAULT</A><DD>
|
|
<DT id="14"><A HREF="#lbAF">LOAD KERNEL KEYMAP</A><DD>
|
|
<DT id="15"><A HREF="#lbAG">LOAD KERNEL ACCENT TABLE</A><DD>
|
|
<DT id="16"><A HREF="#lbAH">LOAD KERNEL STRING TABLE</A><DD>
|
|
<DT id="17"><A HREF="#lbAI">CREATE KERNEL SOURCE TABLE</A><DD>
|
|
<DT id="18"><A HREF="#lbAJ">CREATE BINARY KEYMAP</A><DD>
|
|
<DT id="19"><A HREF="#lbAK">UNICODE MODE</A><DD>
|
|
<DT id="20"><A HREF="#lbAL">OTHER OPTIONS</A><DD>
|
|
<DT id="21"><A HREF="#lbAM">WARNING</A><DD>
|
|
<DT id="22"><A HREF="#lbAN">FILES</A><DD>
|
|
<DT id="23"><A HREF="#lbAO">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:18 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|