echo $DISPLAYto see how you are set up. You can change the DISPLAY if you want by typing "export DISPLAY=new display"
This client-server model gives greater flexibility but makes the server a complex piece of software. It accepts requests (in a protocol language common across machine types) from various clients `simultaneously', rebundles theses requests for effeciency, then executes them. It also handles resources like fonts on behalf of the clients so that clients can share them. The present X windows, X11, is into its 6th public domain release. HP's version is a variant of release 5. Libraries of higher level functions exist too, and are on the way to being standardised.
In /usr/bin/X11 there are various clients (xclock, etc).
In /usr/lib/X11/fonts is a directory of fonts.
In /usr/lib/X11/rgb.txt there is a list of colors.
When a client starts, the fonts, colors etc that it uses can be set up in various ways. These, in the usual order of precedence, are
hpterm -fn 6x10 -bg "Blue"will give you a terminal window with cute little text on a blue background.
See an application's online documentation for details or better still look at someone else's file. Here are 2 sample lines :-
HPterm*foreground: Yellow HPterm.scrollBar.foreground: BrownThese lines specify foreground colors in an hpterm window. The `.' seperates fields of a resource's name; the `*' is a wildcard representing any number of fields in a name. The first line sets the foreground colors for text, the scrollbar etc to Yellow. The 2nd line, which overwrites the action of the 1st, sets the scrollbar color to Brown. The Using X document gives more details.