2 .TH xscsize 1 "15 November 1998" "Straylight/Edgeware" "xtoys"
4 xscsize \- return size of an X display to a shell script
13 program interrogates an X display and writes the size of the root
14 window to standard output in the form of a shell variable assignment
15 statement. The dimensions are returned in the
21 Command line options can be used to force output in either Bourne or C
22 shell syntax. In the absence of any explicit instructions,
26 environment variable to help make its mind up.
28 Typical use would be something like
37 .BI "\-d, \-\-display " display
38 Choose which display to connect to.
40 .B \-b, --bourne-shell
41 Output the assignments in Bourne shell syntax (usable by Bourne,
42 POSIX, Korn, Z and Bourne Again shells).
45 Output the assignments in C shell syntax (usable by C and Terminal C
49 Output a variable export command, so that the screen size is inherited
50 by child processes. The default is to just set local shell variables.
54 Set to the width of the display in pixels.
56 Set to the height of the display in pixels.
58 Used to decide the nature of the calling shell. If absent, a Bourne
61 Mark Wooding (mdw@nsict.org).