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 ]
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 Warning: changing the keyboard mode, other than between ASCII and Uni‐
31 code, will probably make your keyboard unusable. This command is only
32 meant for use (say via remote login) when some program left your key‐
33 board in the wrong state. Note that in some obsolete versions of this
34 program the "-u" option was a synonym for "-s".
35
37 loadkeys(1)
38
39
40
41
42 6 Apr 1994 KBD_MODE(1)