I just found that said dtterm trick does not always work - it's only a
q&d h, and that there is a correct and "better" solution.
It is this: suppose xterm is the terminal emulator on the local linux
box one is using
(a) create a directory ~/.terminfo/x on the remote solaris box.
(b) copy the /usr/share/terminfo/x/xterm file from local linux box to
~/.terminfo/x/xterm on the remote box.
(c) Do a export TERMINFO=~/.terminfo on remote.
(d) Start Emacs21
And there! it is a pretty colorful world.
Sriram Karra <karra@xxxxxxxxxxxxxxxxxxxx> writes:
From my debian desktop I ssh over to a remote solaris server. One...
of the disappointing things about this setup is I see everything as
black and white. For e.g. a gnu ls --color does not give color but
only various shades of black and white.
Try playing around with the TERM setting. Setting it to TERM=xterm,
on the client before the ssh may help. You may also need to set
the TERM on the Solaris server.
Let me know if it works out for you.
I found the answer to this question ... finally.
The trick was to set TERM=dtterm after sshing over. It turns out
that by default dtterm is the one that delivers colors on Solaris,
not xterm or xterm-color.