summaryrefslogtreecommitdiffstats
path: root/upstream/mageia-cauldron/man1/kbdinfo.1
blob: a4cf48e2955776345070660dcf8392a78ab21755 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
.TH KBDINFO "1" "June 2019" "kbd"
.SH NAME
kbdinfo \- read information about keyboard state
.SH SYNOPSIS
.B kbdinfo
[\fI\,options\/\fR] \fI\,getmode \/\fR[\fI\,text|graphics\/\fR]
.br
.B kbdinfo
[\fI\,options\/\fR] \fI\,gkbmode \/\fR[\fI\,raw|xlate|mediumraw|unicode\/\fR]
.br
.B kbdinfo
[\fI\,options\/\fR] \fI\,gkbmeta \/\fR[\fI\,metabit|escprefix\/\fR]
.br
.B kbdinfo
[\fI\,options\/\fR] \fI\,gkbled  \/\fR[\fI\,scrolllock|numlock|capslock\/\fR]
.SH DESCRIPTION
The utility allows you to read and check various parameters of the keyboard and
virtual console.
.TP 9
.B getmode
Get or check virtual console mode.
.TP 9
.B gkbmode
Gets current keyboard mode.
.LP
.RS
.TP 12
.B raw
Raw (scancode) mode. These are the raw codes generated by the keyboard.
.TP 12
.B mediumraw
Medium raw (scancode) mode. This is extended medium raw mode, with keys above
127 encoded as 0, high 7 bits, low 7 bits, with the 0 bearing the 'up' flag if
needed. 0 is reserved, so this shouldn't interfere with anything else. The two
bytes after 0 will always have the up flag set not to interfere with older
applications. This allows for 16384 different keycodes, which should be enough.
.TP 12
.B xlate
Translate keycodes using keymap. These are the codes generated via the current
keysym mapping.
.TP 12
.B unicode
Unicode mode.
.RE
.LP
.TP 9
.B gkbmeta
Gets meta key handling mode.
.LP
.RS
.TP 12
.B escprefix
Specifies if pressing the meta (alt) key generates an ESC (\\033) prefix followed by the keysym.
.TP 12
.B metabit
The keysym marked with the high bit set.
.RE
.LP

.TP 9
.B gkbled
Get keyboard flags CapsLock, NumLock, ScrollLock (not lights).
.LP
.RS
.TP 12
.B scrolllock
The scroll lock is down.
.TP 12
.B numlock
The num lock is down.
.TP 12
.B capslock
The caps lock is down.
.RE
.LP
.SH OPTIONS
.TP
\fB\-C\fR, \fB\-\-console\fR=\fI\,DEV\/\fR
the console device to be used;
.TP
\fB\-V\fR, \fB\-\-version\fR
print version number;
.TP
\fB\-h\fR, \fB\-\-help\fR
print this usage message.
.SH AUTHORS
Written by Alexey Gladkov.
.SH "SEE ALSO"
.BR kbdrate (1),
.BR setleds (1),
.BR kbd_mode (1)