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