[PATCH xsetpointer] Impove help
Stéphane Aulery
lkppo at free.fr
Mon Jul 8 15:35:45 PDT 2013
Signed-off-by: Stéphane Aulery <lkppo at free.fr>
---
man/xsetpointer.man | 30 ++++++++++++++++++++++++------
xsetpointer.c | 6 +++++-
2 files changed, 29 insertions(+), 7 deletions(-)
diff --git a/man/xsetpointer.man b/man/xsetpointer.man
index c75666f..92ac92e 100644
--- a/man/xsetpointer.man
+++ b/man/xsetpointer.man
@@ -5,13 +5,31 @@
.SH NAME
xsetpointer \- set an X Input device as the main pointer
.SH SYNOPSIS
-.B xsetpointer \-l
-|
+.PP
+.B xsetpointer
+\-l
+.PP
+.B xsetpointer
+\-c
+.I device-name
+.PP
+.B xsetpointer
+\+c
.I device-name
.SH DESCRIPTION
-Xsetpointer sets an XInput device as the main pointer. When called with
-the \-l flag it lists the available devices. When called with the -c/+c
-flag, it toggles the sending of core input events, for servers which
-implement a virtual core pointer; -c disables core events, and +c enables.
+.B Xsetpointer
+sets an XInput device as the main pointer.
+.SH OPTIONS
+.TP 8
+.B "-l"
+Lists the available devices.
+.TP 8
+.BI "-c" " device-name"
+Toggles the sending of core input events, for servers which implement a
+virtual core pointer; disables core events.
+.TP 8
+.BI "+c" " device-name"
+Toggles the sending of core input events, for servers which implement a
+virtual core pointer; enables core events.
.SH AUTHOR
Frederic Lepied
diff --git a/xsetpointer.c b/xsetpointer.c
index 566b9f4..1241c2b 100644
--- a/xsetpointer.c
+++ b/xsetpointer.c
@@ -75,7 +75,11 @@ main(int argc, char * argv[])
int major, evt, err; /* event version, etc */
if (argc < 2 || argc > 3) {
- fprintf(stderr, "usage : %s (-l | -c | +c ) <device name>\n", argv[0]);
+ fprintf(stderr, "Usage: %s -l | -c <device name> | +c <device name>\n", argv[0]);
+ fprintf(stderr, "Options:\n");
+ fprintf(stderr, " -l Lists the available devices\n");
+ fprintf(stderr, " -c <device name> Disables core events\n");
+ fprintf(stderr, " +c <device name> Enables core events\n");
exit(1);
}
--
1.7.10.4
More information about the xorg-devel
mailing list