Changing cursor appearance

Specifying scoterm cursors for individual users

Individual users can use their own unique set of pointer cursors for scoterm. These font settings do not change the default pointer cursors that are used by other users on the system.

To change scoterm cursor fonts for an individual user, perform the following steps.

  1. Create a file called .Xdefaults-hostname in the user's home directory.

  2. Edit the .Xdefaults-hostname file and add the new cursor font resource specification, using the following format:

    ScoTerm*pointerShape: cursorname

    When you are finished, save your changes and exit the resource file.

  3. If you created the .Xdefaults-hostname file as root, assign the appropriate user permissions to the file:

    chown username .Xdefaults-hostname
    chgrp groupname .Xdefaults-hostname

  4. If necessary, restart the scoterm client.

Step 1: Creating an .Xdefaults-hostname file

Individual users can assign their own values to cursor font resource specifications. You can either change the value of a font resource already set in the resource database, or you can set an entirely new font resource. User defaults always override system defaults, allowing different users running the same clients to specify personal font preferences.

Individual resource settings are placed in a file called .Xdefaults-hostname, where hostname is the name of the host, or machine, where the client is running.

You can add an .Xdefaults-hostname file to a user's home directory in one of two ways:

NOTE: If you create an .Xdefaults-hostname file by copying the relevant lines from the ScoTerm file in the app-defaults directory, be sure to add scoterm or ScoTerm to the beginning of each line if it is not already there.

When the user invokes scoterm, the X server checks to see if an .Xdefaults-hostname file exists in $HOME. If such a file does exist, the resource values specified in the user resource file take precedence over any values assigned to the same resource in the resource database.

See also:

Step 2: Setting the font resource

Font resource specifications must use the correct format:

ScoTerm*pointerShape: cursorname

When you specify the scoterm client, you can enter either the class name, ScoTerm, or the binary name, scoterm. pointerShape is the resource variable you are setting. It is part of the resource class, Cursor. cursorname is the actual name of the cursor you are selecting. Use the font names listed in ``Standard cursor font names''.

See also:

Step 3: Assigning correct ownership permissions

If you generated an .Xdefaults-hostname file for a user from the root account, whether by creating the file or by copying the ScoTerm file from /usr/lib/X11/app-defaults, you must assign the file the correct ownership permissions. Run the chown command to assign the correct owner, and the chgrp command to assign the correct group to the .Xdefaults-hostname file:

chown username .Xdefaults-hostname
chgrp groupname .Xdefaults-hostname

If you created your own .Xdefaults-hostname file, you can ignore this step. Your ownership permissions are already correct.

Step 4: Restarting the scoterm client

If you are running a Graphical Environment session and you used the scoterm window to make the desired changes to the resource file, you will not see the effects of the changes until you exit scoterm and invoke it again.

Next topic: Setting scoterm cursors from the command line
Previous topic: Step 3: Activating the new cursor

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003