Imported upstream version 1.5
[manpages-zh.git] / raw / man1 / kbd_mode.1
blobee3316a8cfaa8ac677d4dcf9bf526661cb4e8ba2
1 .\" @(#)kbd_mode.1 1.0 940406 aeb
2 .TH KBD_MODE 1 "6 Apr 1994"
3 .SH NAME
4 kbd_mode \- report or set the keyboard mode
5 .SH SYNOPSIS
6 .B kbd_mode
8 .I -a | -u | -k | -s 
10 .SH DESCRIPTION
11 .IX "kbd_mode command" "" "\fLkbd_mode\fR command"  
12 .LP
13 Without argument,
14 .B kbd_mode
15 prints the current keyboard mode (RAW, MEDIUMRAW or XLATE).
16 With argument, it sets the keyboard mode as indicated:
17 .LP
18 \-s: scancode mode (RAW),
19 .LP
20 \-k: keycode mode (MEDIUMRAW),
21 .LP
22 \-a: ASCII mode (XLATE),
23 .LP
24 \-u: UTF-8 mode (UNICODE).
25 .LP
26 Of course the "\-a" is only traditional, and the code used can be any
27 8-bit character set.  With "\-u" a 16-bit character set is expected,
28 and these chars are transmitted to the kernel as 1, 2, or 3 bytes
29 (following the UTF-8 coding).
30 In these latter two modes the key mapping defined by loadkeys(1)
31 is used.
33 Warning: changing the keyboard mode, other than between ASCII and
34 Unicode, will probably make your keyboard unusable.
35 This command is only meant for use (say via remote login)
36 when some program left your keyboard in the wrong state.
37 Note that in some obsolete versions of this program the "\-u"
38 option was a synonym for "\-s".
39 .SH "SEE ALSO"
40 .BR loadkeys (1)