1KBD_MODE(1) General Commands Manual KBD_MODE(1)
2
3
4
6 kbd_mode - report or set the keyboard mode
7
9 kbd_mode [ -a | -u | -k | -s ] [ -C CONSOLE ]
10
12 Without argument, kbd_mode prints the current keyboard mode (RAW, MEDI‐
13 UMRAW or XLATE). With argument, it sets the keyboard mode as indi‐
14 cated:
15
16 -s: scancode mode (RAW),
17
18 -k: keycode mode (MEDIUMRAW),
19
20 -a: ASCII mode (XLATE),
21
22 -u: UTF-8 mode (UNICODE).
23
24 Of course the "-a" is only traditional, and the code used can be any
25 8-bit character set. With "-u" a 16-bit character set is expected, and
26 these chars are transmitted to the kernel as 1, 2, or 3 bytes (follow‐
27 ing the UTF-8 coding). In these latter two modes the key mapping
28 defined by loadkeys(1) is used.
29
30 kbd_mode operates on the console specified by the "-C" option; if there
31 is none, the console associated with stdin is used.
32
33 Warning: changing the keyboard mode, other than between ASCII and Uni‐
34 code, will probably make your keyboard unusable. This command is only
35 meant for use (say via remote login) when some program left your key‐
36 board in the wrong state. Note that in some obsolete versions of this
37 program the "-u" option was a synonym for "-s".
38
40 loadkeys(1)
41
42
43
44
45 6 Apr 1994 KBD_MODE(1)