Debian Codegraph @

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