Blame SOURCES/kbdinfo.1

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