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