# kbdinfo - obtain information about the status of a console - man(1) - [phpMan]

[_KBDINFO_(1)](https://www.chedong.com/phpMan.php/man/KBDINFO/1/markdown)                             General Commands Manual                            [_KBDINFO_(1)](https://www.chedong.com/phpMan.php/man/KBDINFO/1/markdown)

## NAME
       kbdinfo - obtain information about the status of a console

## SYNOPSIS
       **kbdinfo **[-C _DEVICE_] getmode [text|graphics]

       **kbdinfo **[-C _DEVICE_] gkbmode [raw|xlate|mediumraw|unicode]

       **kbdinfo **[-C _DEVICE_] gkbmeta [metabit|escprefix]

       **kbdinfo **[-C _DEVICE_] gkbled [scrolllock|numlock|capslock]

## DESCRIPTION
       **kbdinfo  **is  an  interface to KDGETMODE, GKBMODE, GKBMETA and GKBLED ioctls.  Its primary use
       case is to query the status of the given _CONSOLE_ (or the currently active one, if no  -C  op‐
       tion is present) from a shell script.

       If  the  final  value argument is not specified, **kbdinfo **will print the result of the desired
       ioctl to the standard output.  Otherwise, the given value is compared to the  actual  result,
       and  the  utility  will  exit  with  a status code of 0 for a match, 1 otherwise.  No text is
       printed for this style of invocation.

## SEE ALSO
       [**kbd_mode**(1)](https://www.chedong.com/phpMan.php/man/kbdmode/1/markdown)

## AUTHOR
       kbdinfo is Copyright © 2011 Alexey Gladkov <<gladkov.alexey@gmail.com>>.

       This manual page was written by Michael Schutte <<michi@debian.org>> for the  Debian  GNU/Linux
       system (but may be used by others).

                                              June 2011                                   [_KBDINFO_(1)](https://www.chedong.com/phpMan.php/man/KBDINFO/1/markdown)
