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