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