1KBDINFO(1)                       User Commands                      KBDINFO(1)
2
3
4

NAME

6       kbdinfo - read information about keyboard state
7

SYNOPSIS

9       kbdinfo [options] getmode [text|graphics]
10       kbdinfo [options] gkbmode [raw|xlate|mediumraw|unicode]
11       kbdinfo [options] gkbmeta [metabit|escprefix]
12       kbdinfo [options] gkbled  [scrolllock|numlock|capslock]
13

DESCRIPTION

15       The utility allows you to read and check various parameters of the key‐
16       board and virtual console.
17
18       getmode  Get or check virtual console mode.
19
20       gkbmode  Gets current keyboard mode.
21
22              raw         Raw (scancode) mode. These are the raw codes  gener‐
23                          ated by the keyboard.
24
25              mediumraw   Medium  raw (scancode) mode. This is extended medium
26                          raw mode, with keys above 127 encoded as 0,  high  7
27                          bits,  low  7 bits, with the 0 bearing the 'up' flag
28                          if needed. 0 is reserved, so this  shouldn't  inter‐
29                          fere  with anything else. The two bytes after 0 will
30                          always have the up flag set not  to  interfere  with
31                          older  applications. This allows for 16384 different
32                          keycodes, which should be enough.
33
34              xlate       Translate keycodes using keymap. These are the codes
35                          generated via the current keysym mapping.
36
37              unicode     Unicode mode.
38
39       gkbmeta  Gets meta key handling mode.
40
41              escprefix   Specifies  if  pressing the meta (alt) key generates
42                          an ESC (\033) prefix followed by the keysym.
43
44              metabit     The keysym marked with the high bit set.
45
46       gkbled   Get keyboard flags CapsLock, NumLock, ScrollLock (not lights).
47
48              scrolllock  The scroll lock is down.
49
50              numlock     The num lock is down.
51
52              capslock    The caps lock is down.
53

OPTIONS

55       -C, --console=DEV
56              the console device to be used;
57
58       -V, --version
59              print version number;
60
61       -h, --help
62              print this usage message.
63

AUTHORS

65       Written by Alexey Gladkov.
66

SEE ALSO

68       kbdrate(1), setleds(1), kbd_mode(1)
69
70
71
72kbdinfo from kbd 2.0.4             June 2019                        KBDINFO(1)
Impressum