sapphire:joan % echo $DISPLAY
:0.0
The DISPLAY environment variable is used by all X clients to
determine what X server to display on. Since any X client can connect
to any X server that allows it, all X clients need to know what
display to connect to upon startup. If DISPLAY is not properly set,
the client cannot execute:
sapphire:joan % setenv DISPLAY foo:0
sapphire:joan % xterm
xterm Xt error: Can't open display:
You can override the value of DISPLAY by using the
-display command-line option. For example:
sapphire:joan % xterm -display sapphire:0.0 &
When you run clients from remote machines, some additional problems
with the DISPLAY environment variable need to be addressed. See
Section 6.10 for more information on running
remote clients.