Mosaic User's Guide

Setting X Resources

X resources are usually set in a personal .Xdefaults file (in the user's home directory). Since the class name for the Mosaic application is Mosaic (with a capital M), entries in an .Xdefaults file look something like this: Mosaic*defaultHeight: 700 Mosaic*fancySelections: True Mosaic*personalAnnotationDirectory: misc/.mosaic-personal-annotations Mosaic*visitedAnchorColor: red Note that if you alter your .Xdefaults file while Mosaic is running, the changes will not take effect until you quit and re-run Mosaic. On most systems, you also need to use the command: xrdb .Xdefaults to cause the .Xdefaults file to take effect.

You will notice that this documentation describes X resources by their name, followed by a colon (:), followed by the resource data type. For example, if the resource type is integer, then the word integer should be replaced by a whole number. Here is a brief list of resource data types:

integer
A whole number, for example:
Mosaic*defaultHeight: 700
Boolean
Either True or False, for example:
Mosaic*fancySelections: True
string
A character string, for example:
Mosaic*personalAnnotationDirectory: misc/.mosaic-personal-annotations
color
The name (or number) of a color, for example:
Mosaic*visitedAnchorColor: red
Mosaic*Foreground: #000000000000
font
The name of a font, see example .Xdefaults file for examples.
For more help, see this example .Xdefaults file.

Back to Basic Configuration Guide

Back to top level Documentation Index


National Center for Supercomputing Applications
alanb@ncsa.uiuc.edu