By combining class and instance specifications, application preferences can be set quickly and easily. Users of color displays will frequently want to set Background and Foreground classes to particular defaults. Specific color instances such as text cursors can then be overridden without having to define all of the related resources. For example,
dticon*Dashed: |
| off |
XTerm*cursorColor: | gold |
|
XTerm*multiScroll: | on |
|
XTerm*jumpScroll: | on |
|
XTerm*reverseWrap: | on |
|
XTerm*curses: |
| on |
XTerm*Font: |
| 6x10 |
XTerm*scrollBar: | on |
|
XTerm*scrollbar*thickness: | 5 |
|
XTerm*multiClickTime: | 500 |
|
XTerm*charClass: |
| |
XTerm*cutNewline: | off |
|
XTerm*cutToBeginningOfLine: | off |
|
XTerm*titeInhibit: | on |
|
XTerm*ttyModes: |
| intr ^c erase ^? kill |
|
| ^u |
XLoad*Background: | gold |
|
XLoad*Foreground: | red |
|
XLoad*highlight: | black |
|
XLoad*borderWidth: | 0 |
|
hpterm*Geometry: |
| |
hpterm*Background: | rgb:5b/76/86 |
|
hpterm*Foreground: | white |
|
hpterm*Cursor: |
| white |
hpterm*BorderColor: | white |
|
hpterm*Font: |
| 6x10 |
If these resources were stored in a file called .Xdefaults in your home directory, they could be added to any existing resources in the server with the following command:
$ xrdb
This is frequently how
Page 140 | Graphics Administration Guide for |