diff options
author | Stéphane Aulery <lkppo@free.fr> | 2013-07-09 00:35:45 +0200 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-07-08 23:48:51 -0700 |
commit | be3762785d3d2649c12f782bb459f34b5b6a8a07 (patch) | |
tree | 79d01d8516ef8a39943eae5c656dfd2476ea7471 | |
parent | cf5583c9d692b7fc080dc3505d3692d8e8e9eb05 (diff) |
Impove help
Signed-off-by: Stéphane Aulery <lkppo@free.fr>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | man/xsetpointer.man | 30 | ||||
-rw-r--r-- | 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); } |