93 lines
2.3 KiB
HTML
93 lines
2.3 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of KBD_MODE</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>KBD_MODE</H1>
|
|
Section: User Commands (1)<BR>Updated: 6 Apr 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>
|
|
|
|
kbd_mode - report or set the keyboard mode
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>kbd_mode</B>
|
|
|
|
[
|
|
<I>-a | -u | -k | -s </I>
|
|
|
|
] [
|
|
<I>-f</I>
|
|
|
|
] [
|
|
<I>-C CONSOLE</I>
|
|
|
|
]
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
|
|
Without argument,
|
|
<B>kbd_mode</B>
|
|
|
|
prints the current keyboard mode (RAW, MEDIUMRAW or XLATE).
|
|
With argument, it sets the keyboard mode as indicated:
|
|
<P>
|
|
|
|
-s: scancode mode (RAW),
|
|
<P>
|
|
|
|
-k: keycode mode (MEDIUMRAW),
|
|
<P>
|
|
|
|
-a: ASCII mode (XLATE),
|
|
<P>
|
|
|
|
-u: UTF-8 mode (UNICODE).
|
|
<P>
|
|
|
|
Of course the "-a" is only traditional, and the code used can be any
|
|
8-bit character set. With "-u" a 16-bit character set is expected,
|
|
and these chars are transmitted to the kernel as 1, 2, or 3 bytes
|
|
(following the UTF-8 coding).
|
|
In these latter two modes the key mapping defined by <A HREF="/cgi-bin/man/man2html?1+loadkeys">loadkeys</A>(1)
|
|
is used.
|
|
<P>
|
|
kbd_mode operates on the console specified by the "-C" option; if there
|
|
is none, the console associated with stdin is used.
|
|
<P>
|
|
Warning: changing the keyboard mode, other than between ASCII and
|
|
Unicode, will probably make your keyboard unusable. Set the "-f" option
|
|
to force such changes.
|
|
This command is only meant for use (say via remote login)
|
|
when some program left your keyboard in the wrong state.
|
|
Note that in some obsolete versions of this program the "-u"
|
|
option was a synonym for "-s" and older versions of this program may
|
|
not recognize the "-f" option.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+loadkeys">loadkeys</A></B>(1)
|
|
|
|
<P>
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="2"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="3"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="4"><A HREF="#lbAE">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:17 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|