1KBDINFO(1)                  General Commands Manual                 KBDINFO(1)
2
3
4

NAME

6       kbdinfo - obtain information about the status of a console
7

SYNOPSIS

9       kbdinfo [-C DEVICE] getmode [text|graphics]
10
11       kbdinfo [-C DEVICE] gkbmode [raw|xlate|mediumraw|unicode]
12
13       kbdinfo [-C DEVICE] gkbmeta [metabit|escprefix]
14
15       kbdinfo [-C DEVICE] gkbled [scrolllock|numlock|capslock]
16

DESCRIPTION

18       kbdinfo  is  an  interface  to  KDGETMODE,  GKBMODE, GKBMETA and GKBLED
19       ioctls.  Its primary use case is to query the status of the given  CON‐
20       SOLE  (or  the currently active one, if no -C option is present) from a
21       shell script.
22
23       If the final value argument is not specified, kbdinfo  will  print  the
24       result  of  the  desired  ioctl to the standard output.  Otherwise, the
25       given value is compared to the actual result, and the utility will exit
26       with  a  status code of 0 for a match, 1 otherwise.  No text is printed
27       for this style of invocation.
28

SEE ALSO

30       kbd_mode(1)
31

AUTHOR

33       kbdinfo is Copyright © 2011 Alexey Gladkov <gladkov.alexey@gmail.com>.
34
35       This manual page was written by Michael Schutte <michi@debian.org>  for
36       the Debian GNU/Linux system (but may be used by others).
37
38
39
40                                   June 2011                        KBDINFO(1)
Impressum