From 3f5e1b712415652ccbe71df84efc04e1e219aa7c Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Mon, 15 May 2017 15:55:50 +0200 Subject: rename manpages --- GNUmakefile | 6 +++--- input-events.8 | 34 ++++++++++++++++++++++++++++++++ input-events.man | 34 -------------------------------- input-kbd.8 | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ input-kbd.man | 60 -------------------------------------------------------- lsinput.8 | 31 +++++++++++++++++++++++++++++ lsinput.man | 31 ----------------------------- 7 files changed, 128 insertions(+), 128 deletions(-) create mode 100644 input-events.8 delete mode 100644 input-events.man create mode 100644 input-kbd.8 delete mode 100644 input-kbd.man create mode 100644 lsinput.8 delete mode 100644 lsinput.man diff --git a/GNUmakefile b/GNUmakefile index f4588f7..6cce4fc 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -37,9 +37,9 @@ input.o: input.c $(HEADERS) install: build $(INSTALL_DIR) $(bindir) $(mandir)/man8 $(INSTALL_BINARY) lsinput input-events input-kbd input-send input-recv $(bindir) - $(INSTALL_DATA) lsinput.man $(mandir)/man8/lsinput.8 - $(INSTALL_DATA) input-kbd.man $(mandir)/man8/input-kbd.8 - $(INSTALL_DATA) input-events.man $(mandir)/man8/input-events.8 + $(INSTALL_DATA) lsinput.8 $(mandir)/man8/lsinput.8 + $(INSTALL_DATA) input-kbd.8 $(mandir)/man8/input-kbd.8 + $(INSTALL_DATA) input-events.8 $(mandir)/man8/input-events.8 clean: diff --git a/input-events.8 b/input-events.8 new file mode 100644 index 0000000..e57e428 --- /dev/null +++ b/input-events.8 @@ -0,0 +1,34 @@ +.TH INPUT-EVENTS 8 "July 2005" "" "" +.SH NAME + +input-events \- print input events + +.SH SYNOPSIS +\fBinput\-events \fR [\fB\-t\fR\ \fIsec\fR] [\fB\-g\fR]\ \fIdevnr\fR + +.SH DESCRIPTION +.PP +\fBinput\-events\fR listens for events on kernel input device +\fIdevnr\fR and prints them. + +.SH OPTIONS +.TP +\fIdevnr\fR +The index of the input device to use (0 for /dev/input/event0 and so on). + +.TP +\fB\-g\fR +Grab device using EVIOCGRAB, i\&.e\&., +get exclusive access to the device. + +.TP +\fB\-t\fR\ \fIsec\fR +Set the timeout. +The program will quit after \fIsec\fR seconds without activity. + +.SH SEE ALSO +.PP +lsinput(8) + +.SH AUTHOR +Gerd Hoffmann diff --git a/input-events.man b/input-events.man deleted file mode 100644 index e57e428..0000000 --- a/input-events.man +++ /dev/null @@ -1,34 +0,0 @@ -.TH INPUT-EVENTS 8 "July 2005" "" "" -.SH NAME - -input-events \- print input events - -.SH SYNOPSIS -\fBinput\-events \fR [\fB\-t\fR\ \fIsec\fR] [\fB\-g\fR]\ \fIdevnr\fR - -.SH DESCRIPTION -.PP -\fBinput\-events\fR listens for events on kernel input device -\fIdevnr\fR and prints them. - -.SH OPTIONS -.TP -\fIdevnr\fR -The index of the input device to use (0 for /dev/input/event0 and so on). - -.TP -\fB\-g\fR -Grab device using EVIOCGRAB, i\&.e\&., -get exclusive access to the device. - -.TP -\fB\-t\fR\ \fIsec\fR -Set the timeout. -The program will quit after \fIsec\fR seconds without activity. - -.SH SEE ALSO -.PP -lsinput(8) - -.SH AUTHOR -Gerd Hoffmann diff --git a/input-kbd.8 b/input-kbd.8 new file mode 100644 index 0000000..1ecd0e8 --- /dev/null +++ b/input-kbd.8 @@ -0,0 +1,60 @@ +.TH INPUT-KBD 8 "July 2005" "" "" + +.SH NAME +input-kbd \- print or modify keyboard maps for input devices + +.SH SYNOPSIS +\fBinput\-kbd\fR \fInum\fR +.HP 10 +\fBinput\-kbd \fR [\fB\-f\fR\ \fIfile\fR] \fIdevnr\fR + +.SH DESCRIPTION + +.PP +\fBinput\-kbd\fR prints the keyboard map of kernel input device +\fIdevnr\fR on stdout. +The keyboard map maps scancodes to keycodes. + +.PP +If the device supports a keyboard map, +it is printed in the following format +(from the output for an AT keyboard): +.IP + 0x0001 = 67 # KEY_F9 + 0x0002 = 65 # KEY_F7 + 0x0003 = 63 # KEY_F5 + 0x0004 = 61 # KEY_F3 + + +.PP +If the device does not support a keyboard map, +\fBinput\-kbd\fR just lists the keys and buttons supported by the device, +like this (for a mouse): +.IP + bits: BTN_LEFT + bits: BTN_RIGHT + bits: BTN_MIDDLE + + +.SH OPTIONS + +.TP +\fIdevnr\fR +The index of the input device to use (0 for /dev/input/event0 and so on). + +.TP +\fB\-f\fR \fIfile\fR +Read a keyboard map from a file and reconfigure the device with this map. +If the file name is '-' then stdin is used. +The map file uses the same format as the output of this command. +Blank lines are ignored. A '#' character and anything following it on the same line are ignored as a comment. +Scancodes and keycodes are decimal values unless proceeded by "0x" for hexadecimal. +To remove a mapping entirely, set it to 0x00 (RESERVED). +Key names are also accepted instead of keycodes, like this: +.IP + 0x0001 = KEY_F9 +.TP +Be careful setting values from 0 to 9, as they will be parsed as the key symbols, not the decimal numbers. If you want to list a single-digit decimal keycode, specify it as a hexadecimal value to remove any ambiguity. + +.SH AUTHOR +Gerd Hoffmann diff --git a/input-kbd.man b/input-kbd.man deleted file mode 100644 index 1ecd0e8..0000000 --- a/input-kbd.man +++ /dev/null @@ -1,60 +0,0 @@ -.TH INPUT-KBD 8 "July 2005" "" "" - -.SH NAME -input-kbd \- print or modify keyboard maps for input devices - -.SH SYNOPSIS -\fBinput\-kbd\fR \fInum\fR -.HP 10 -\fBinput\-kbd \fR [\fB\-f\fR\ \fIfile\fR] \fIdevnr\fR - -.SH DESCRIPTION - -.PP -\fBinput\-kbd\fR prints the keyboard map of kernel input device -\fIdevnr\fR on stdout. -The keyboard map maps scancodes to keycodes. - -.PP -If the device supports a keyboard map, -it is printed in the following format -(from the output for an AT keyboard): -.IP - 0x0001 = 67 # KEY_F9 - 0x0002 = 65 # KEY_F7 - 0x0003 = 63 # KEY_F5 - 0x0004 = 61 # KEY_F3 - - -.PP -If the device does not support a keyboard map, -\fBinput\-kbd\fR just lists the keys and buttons supported by the device, -like this (for a mouse): -.IP - bits: BTN_LEFT - bits: BTN_RIGHT - bits: BTN_MIDDLE - - -.SH OPTIONS - -.TP -\fIdevnr\fR -The index of the input device to use (0 for /dev/input/event0 and so on). - -.TP -\fB\-f\fR \fIfile\fR -Read a keyboard map from a file and reconfigure the device with this map. -If the file name is '-' then stdin is used. -The map file uses the same format as the output of this command. -Blank lines are ignored. A '#' character and anything following it on the same line are ignored as a comment. -Scancodes and keycodes are decimal values unless proceeded by "0x" for hexadecimal. -To remove a mapping entirely, set it to 0x00 (RESERVED). -Key names are also accepted instead of keycodes, like this: -.IP - 0x0001 = KEY_F9 -.TP -Be careful setting values from 0 to 9, as they will be parsed as the key symbols, not the decimal numbers. If you want to list a single-digit decimal keycode, specify it as a hexadecimal value to remove any ambiguity. - -.SH AUTHOR -Gerd Hoffmann diff --git a/lsinput.8 b/lsinput.8 new file mode 100644 index 0000000..718e4dd --- /dev/null +++ b/lsinput.8 @@ -0,0 +1,31 @@ +.TH LSINPUT 8 "July 2005" "" "" + +.SH NAME +lsinput \- list input devices + +.SH SYNOPSIS +.B lsinput +\fBlsinput\fR [\fB\-v\fR]\ [\fB\-s\fR\ \fIdevnr\fR] + +.SH DESCRIPTION +.PP +\fBlsinput\fR displays a list of all input devices of the kernel, +along with some information about each device. + +.SH OPTIONS +.TP +\fB\-v\fR +Be verbose, print more details on the input devices. +Default is to use a compact format with one line per device. + +.TP +\fB\-s\fR\ \fIdevnr\fR +Specify the device to print. +Default is to print all devices. + +.SH SEE ALSO +.PP +input\-events(8) + +.SH AUTHOR +Gerd Hoffmann diff --git a/lsinput.man b/lsinput.man deleted file mode 100644 index 718e4dd..0000000 --- a/lsinput.man +++ /dev/null @@ -1,31 +0,0 @@ -.TH LSINPUT 8 "July 2005" "" "" - -.SH NAME -lsinput \- list input devices - -.SH SYNOPSIS -.B lsinput -\fBlsinput\fR [\fB\-v\fR]\ [\fB\-s\fR\ \fIdevnr\fR] - -.SH DESCRIPTION -.PP -\fBlsinput\fR displays a list of all input devices of the kernel, -along with some information about each device. - -.SH OPTIONS -.TP -\fB\-v\fR -Be verbose, print more details on the input devices. -Default is to use a compact format with one line per device. - -.TP -\fB\-s\fR\ \fIdevnr\fR -Specify the device to print. -Default is to print all devices. - -.SH SEE ALSO -.PP -input\-events(8) - -.SH AUTHOR -Gerd Hoffmann -- cgit