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