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:

33:48,37:48,45-47:48,64:48

 

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:

80x65-0-0

 

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 -merge $HOME/.Xdefaults

This is frequently how user-friendly startup scripts merge user-specific defaults into any site-wide defaults. All sites are encouraged to set up convenient ways of automatically loading resources. See the Xlib manual section "Resource Manager Functions" for more information.

Page 140

Graphics Administration Guide for HP-UX 10.20