Debian Codegraph @

upstream/debian-trixie/man1/kbd_mode.1

raw
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
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).
19 With argument, it sets the keyboard mode as indicated:
20 .LP
21 \-s: scancode mode (RAW),
22 .LP
23 \-k: keycode mode (MEDIUMRAW),
24 .LP
25 \-a: ASCII mode (XLATE),
26 .LP
27 \-u: UTF-8 mode (UNICODE).
28 .LP
29 Of course the "\-a" is only traditional, and the code used can be any
30 8-bit character set. With "\-u" a 16-bit character set is expected,
31 and these chars are transmitted to the kernel as 1, 2, or 3 bytes
32 (following the UTF-8 coding).
33 In these latter two modes the key mapping defined by
34 .BR loadkeys (1)
35 is used.
36
37 kbd_mode operates on the console specified by the "\-C" option; if there
38 is none, the console associated with stdin is used.
39
40 Warning: changing the keyboard mode, other than between ASCII and
41 Unicode, will probably make your keyboard unusable. Set the "\-f" option
42 to force such changes.
43 This command is only meant for use (say via remote login)
44 when some program left your keyboard in the wrong state.
45 Note that in some obsolete versions of this program the "\-u"
46 option was a synonym for "\-s" and older versions of this program may
47 not recognize the "\-f" option.
48 .SH AUTHORS
49 Andries Brouwer <[email protected]>
50 .SH "SEE ALSO"
51 .BR loadkeys (1)
52