KBDINFOSection: User Commands (1)
Updated: June 2011
Index | Return to Main Contents
NAMEkbdinfo - obtain information about the status of a console
SYNOPSISkbdinfo [-C DEVICE] getmode [text|graphics]
kbdinfo [-C DEVICE] gkbmode [raw|xlate|mediumraw|unicode]
kbdinfo [-C DEVICE] gkbmeta [metabit|escprefix]
DESCRIPTIONkbdinfo 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 option 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.
AUTHORkbdinfo is Copyright © 2011 Alexey Gladkov <email@example.com>.
This manual page was written by Michael Schutte <firstname.lastname@example.org> for the Debian GNU/Linux system (but may be used by others).
Return to Main Contents