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