version 1, including all changes.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
KBD_MODE |
|
|
2 |
!!!KBD_MODE |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
SEE ALSO |
|
|
7 |
---- |
|
|
8 |
!!NAME |
|
|
9 |
|
|
|
10 |
|
|
|
11 |
kbd_mode - report or set the keyboard mode |
|
|
12 |
!!SYNOPSIS |
|
|
13 |
|
|
|
14 |
|
|
|
15 |
__kbd_mode [[__ ''-auks'' __]__ |
|
|
16 |
!!DESCRIPTION |
|
|
17 |
|
|
|
18 |
|
|
|
19 |
Without argument, __kbd_mode__ prints the current |
|
|
20 |
keyboard mode. With argument, it sets the keyboard mode as |
|
|
21 |
indicated: |
|
|
22 |
|
|
|
23 |
|
|
|
24 |
''-s'': scancode mode (RAW), |
|
|
25 |
|
|
|
26 |
|
|
|
27 |
''-k'': keycode mode (MEDIUMRAW), |
|
|
28 |
|
|
|
29 |
|
|
|
30 |
''-a'': ASCII mode (XLATE), |
|
|
31 |
|
|
|
32 |
|
|
|
33 |
''-u'': UTF-8 mode (UNICODE). |
|
|
34 |
|
|
|
35 |
|
|
|
36 |
The ''XLATE'' mode is the traditional one, where the |
|
|
37 |
codes used can be any __8-bit__ character set. Is is |
|
|
38 |
usually expected that this character set matches the one |
|
|
39 |
used later to translate them internally into Unicode, after |
|
|
40 |
they are sent to the screen to be displayed, using the map |
|
|
41 |
selected by __consolechars__ ''-m''. |
|
|
42 |
|
|
|
43 |
|
|
|
44 |
In ''UNICODE'' mode, a __16-bit__ character set is |
|
|
45 |
expected, and these chars are transmitted to the kernel as |
|
|
46 |
1, 2, or 3 bytes (following the __UTF-8__ coding). In |
|
|
47 |
these latter two modes the key mapping defined by |
|
|
48 |
loadkeys(1) is used. |
|
|
49 |
|
|
|
50 |
|
|
|
51 |
__WARNING:__ changing the keyboard mode, other than |
|
|
52 |
between ASCII and Unicode, will probably make your keyboard |
|
|
53 |
unusable. This command can also be useful (say via remote |
|
|
54 |
login) when some program left your keyboard in the wrong |
|
|
55 |
state, to get the keyboard back into ''XLATE'' or |
|
|
56 |
''UNICODE'' mode. |
|
|
57 |
|
|
|
58 |
|
|
|
59 |
Note that in some obsolete versions of this program the |
|
|
60 |
''-u'' option was a synonym for ''-s''. |
|
|
61 |
!!SEE ALSO |
|
|
62 |
|
|
|
63 |
|
|
|
64 |
loadkeys(1), consolechars(8). |
|
|
65 |
---- |