Example of specifying window geometry
This section provides a comprehensive example that ties together
many of the concepts and procedures discussed in this chapter.
Let's assume you are an administrator for a system whose X server
and clients are accessed by several users. Many of these users have
requested that the scoterm client be run in a
smaller window.
The following steps result in a smaller system-wide scoterm window.
NOTE:
Some full screen programs,
vi(C)
for example, automatically assume that they are running on a window
that is 80 characters wide by 25 characters high. If you change
the width and height dimensions on a terminal emulator, you might also
need to set the $LINES and $COLUMNS environment
variables to match the new terminal emulator geometry.
-
Log into the system as root.
-
Change directories to
/usr/lib/X11/app-defaults and
locate the file named ScoTerm.
This is the default resource
file that you need to edit to make your geometry changes.
-
Open the ScoTerm file for editing and search for
ScoTermgeometry
. (If this entry does not exist,
enter the geometry specified in step 4.)
For the purposes of this example, let's assume the line that
contains this resource looks like this:
ScoTerm*geometry: 80x25+0+0
Comment out this line.
By commenting out the default resource setting, instead of simply
deleting the line, you leave yourself a safeguard. You can always
return to this default if you make a mistake when setting a new geometry value.
-
Now open a line immediately below the resource you just commented
out (or if a resource was not previously set, open a line anywhere in the file).
After seeing that the default size of the scoterm window
was 80 characters wide by 25 characters high, you decide that
60 by 20 would be a size that would satisfy your users.
Enter your new geometry specification:
ScoTerm*geometry: 60x20
Notice that you do not have to specify the location of the
scoterm window. If you want to make sure the old
location remains the same, specify the old x and y coordinates on the
line you add, directly after 60x20. If ScoTerm
does not specify a default location, the window
manager positions it.
-
Save and exit the ScoTerm file.
-
To test the new scoterm geometry,
start a Graphical Environment session, by entering the following command at the
prompt:
startx &
-
Run the scoterm client. The window should
now be 60 characters wide by 20 characters high.
Previous topic:
Step 2: Resizing the Desktop with the mouse
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003