| 1 |
.TH KBDINFO 1 "June 2011" |
| 2 |
.SH NAME |
| 3 |
kbdinfo \- obtain information about the status of a console |
| 4 |
.SH SYNOPSIS |
| 5 |
\fBkbdinfo\fR [\-C \fIDEVICE\fR] getmode [text|graphics] |
| 6 |
.LP |
| 7 |
\fBkbdinfo\fR [\-C \fIDEVICE\fR] gkbmode [raw|xlate|mediumraw|unicode] |
| 8 |
.LP |
| 9 |
\fBkbdinfo\fR [\-C \fIDEVICE\fR] gkbmeta [metabit|escprefix] |
| 10 |
.LP |
| 11 |
\fBkbdinfo\fR [\-C \fIDEVICE\fR] gkbled [scrolllock|numlock|capslock] |
| 12 |
.SH DESCRIPTION |
| 13 |
.B kbdinfo |
| 14 |
is an interface to KDGETMODE, GKBMODE, GKBMETA and GKBLED ioctls. Its |
| 15 |
primary use case is to query the status of the given |
| 16 |
.I CONSOLE |
| 17 |
(or the currently active one, if no \-C option is present) from a shell |
| 18 |
script. |
| 19 |
.LP |
| 20 |
If the final value argument is not specified, |
| 21 |
.B kbdinfo |
| 22 |
will print the result of the desired ioctl to the standard output. |
| 23 |
Otherwise, the given value is compared to the actual result, and the |
| 24 |
utility will exit with a status code of 0 for a match, 1 otherwise. No |
| 25 |
text is printed for this style of invocation. |
| 26 |
.SH "SEE ALSO" |
| 27 |
.BR kbd_mode (1) |
| 28 |
.SH AUTHOR |
| 29 |
kbdinfo is Copyright \(co 2011 Alexey Gladkov |
| 30 |
<[email protected]>. |
| 31 |
.LP |
| 32 |
This manual page was written by Michael Schutte <[email protected]> for |
| 33 |
the Debian GNU/Linux system (but may be used by others). |