xqueryptr.c: Add new program to interrogate the pointer position.
[xtoys] / xwarpptr.1
CommitLineData
7f25aae9
MW
1.\" -*-nroff-*-
2.TH xwarpptr 1 "22 April 2022" "Straylight/Edgeware" "xtoys"
3.SH NAME
4xwarpptr \- warp pointer to a given location
5.SH SYNOPSIS
6.B xwarpptr
7.RB [ \-r ]
8.RB [ \-d
9.IR display ]
10.I x
11.I y
12.SH DESCRIPTION
13The
14.B xwarpptr
15warps (moves) the mouse pointer to position
16.RI ( x ,
17.IR y )
18on the screen.
19.PP
20Coordinates use the usual (left-handed) X11 convention: the origin in in
21the top left, with
22.IR x -
23and
24.IR y -coordinates
25increasing rightwards and downwards respectively.
26.PP
27If
28.I x
29or
30.I y
31is negative, then it is instead considered relative to the right or
32bottom edge, respectively. Usually, a negative number would need to be
33preceded by a
34.RB ` \-\- '
35marker to prevent it from being misinterpreted as an option, but
36.B xwarpptr
37takes special care to handle this situation correctly.
38.PP
39With the
40.B \-r
41option,
42.I x
43and
44.I y
45are instead considered relative to the pointer's current position;
46coordinates still increase rightwards and downwards.
47.SS Options
48.TP 5
49.BI "\-d, \-\-display " display
50Choose which display to connect to.
51.TP 5
52.B \-r, \-\-relative
53Move the pointer relative to its current position, rather than to an
54absolute position. (See above.)
55.SH BUGS
56Hopefully none.
57.SH SEE ALSO
58.BR XWarpPointer (3x).
59.SH AUTHOR
60Mark Wooding (mdw@distorted.org.uk).