| 1 |
.\" @(#)kbd_mode.1 1.0 940406 aeb |
| 2 |
.TH KBD_MODE 1 "6 Apr 1994" "kbd" |
| 3 |
.SH NAME |
| 4 |
kbd_mode \- report or set the keyboard mode |
| 5 |
.SH SYNOPSIS |
| 6 |
.B kbd_mode |
| 7 |
[ |
| 8 |
.I -a | -u | -k | -s | -d |
| 9 |
] [ |
| 10 |
.I -f |
| 11 |
] [ |
| 12 |
.I -C CONSOLE |
| 13 |
] |
| 14 |
.SH DESCRIPTION |
| 15 |
.LP |
| 16 |
Without argument, |
| 17 |
.B kbd_mode |
| 18 |
prints the current keyboard mode (RAW, MEDIUMRAW or XLATE). Using the options |
| 19 |
it is possible to switch the keyboard mode of the current console or |
| 20 |
the specified console. |
| 21 |
|
| 22 |
.SH OPTIONS |
| 23 |
.TP |
| 24 |
.B -a, --ascii |
| 25 |
set ASCII mode (XLATE). |
| 26 |
.TP |
| 27 |
.B -k, --keycode |
| 28 |
set keycode mode (MEDIUMRAW). |
| 29 |
.TP |
| 30 |
.B -s, --scancode |
| 31 |
set scancode mode (RAW). |
| 32 |
.TP |
| 33 |
.B -u, --unicode |
| 34 |
set UTF-8 mode (UNICODE). |
| 35 |
.TP |
| 36 |
.B -d, --disable |
| 37 |
set Disable mode (OFF). |
| 38 |
.TP |
| 39 |
.B -f, --force |
| 40 |
switch the mode even if it makes the keyboard unusable. |
| 41 |
.TP |
| 42 |
.B -C, --console=DEV |
| 43 |
the console device to be used. |
| 44 |
.LP |
| 45 |
|
| 46 |
Of course the "\-a" is only traditional, and the code used can be any |
| 47 |
8-bit character set. With "\-u" a 16-bit character set is expected, |
| 48 |
and these chars are transmitted to the kernel as 1, 2, or 3 bytes |
| 49 |
(following the UTF-8 coding). |
| 50 |
In these latter two modes the key mapping defined by |
| 51 |
.BR loadkeys (1) |
| 52 |
is used. |
| 53 |
|
| 54 |
The Didable mode for the virtual console keyboard OFF to compliment RAW |
| 55 |
in which all key events are ignored. The mode prevents vt input |
| 56 |
buffers from overflowing when a program opens but doesn't read from a |
| 57 |
tty, like Xorg using only evdev for input. |
| 58 |
|
| 59 |
kbd_mode operates on the console specified by the "\-C" option; if there |
| 60 |
is none, the console associated with stdin is used. |
| 61 |
|
| 62 |
Warning: changing the keyboard mode, other than between ASCII and |
| 63 |
Unicode, will probably make your keyboard unusable. Set the "\-f" option |
| 64 |
to force such changes. |
| 65 |
This command is only meant for use (say via remote login) |
| 66 |
when some program left your keyboard in the wrong state. |
| 67 |
Note that in some obsolete versions of this program the "\-u" |
| 68 |
option was a synonym for "\-s" and older versions of this program may |
| 69 |
not recognize the "\-f" option. |
| 70 |
.SH AUTHORS |
| 71 |
Andries Brouwer <[email protected]> |
| 72 |
.SH "SEE ALSO" |
| 73 |
.BR loadkeys (1) |
| 74 |
|