fc7faf
.TH KBDINFO 1 "June 2011"
fc7faf
.SH NAME
fc7faf
kbdinfo \- obtain information about the status of a console
fc7faf
.SH SYNOPSIS
fc7faf
\fBkbdinfo\fR [\-C \fIDEVICE\fR] getmode [text|graphics]
fc7faf
.LP
fc7faf
\fBkbdinfo\fR [\-C \fIDEVICE\fR] gkbmode [raw|xlate|mediumraw|unicode]
fc7faf
.LP
fc7faf
\fBkbdinfo\fR [\-C \fIDEVICE\fR] gkbmeta [metabit|escprefix]
fc7faf
.LP
fc7faf
\fBkbdinfo\fR [\-C \fIDEVICE\fR] gkbled [scrolllock|numlock|capslock]
fc7faf
.SH DESCRIPTION
fc7faf
.B kbdinfo
fc7faf
is an interface to KDGETMODE, GKBMODE, GKBMETA and GKBLED ioctls.  Its
fc7faf
primary use case is to query the status of the given
fc7faf
.I CONSOLE
fc7faf
(or the currently active one, if no \-C option is present) from a shell
fc7faf
script.
fc7faf
.LP
fc7faf
If the final value argument is not specified,
fc7faf
.B kbdinfo
fc7faf
will print the result of the desired ioctl to the standard output.
fc7faf
Otherwise, the given value is compared to the actual result, and the
fc7faf
utility will exit with a status code of 0 for a match, 1 otherwise.  No
fc7faf
text is printed for this style of invocation.
fc7faf
.SH "SEE ALSO"
fc7faf
.BR kbd_mode (1)
fc7faf
.SH AUTHOR
fc7faf
kbdinfo is Copyright \(co 2011 Alexey Gladkov
fc7faf
<gladkov.alexey@gmail.com>.
fc7faf
.LP
fc7faf
This manual page was written by Michael Schutte <michi@debian.org> for
fc7faf
the Debian GNU/Linux system (but may be used by others).