5.13. Color in Xterms

If you are running xterm, the default TERM variable will be 'xterm'. If you set this environment variable to 'xterm-color' instead, a lot of programs will use colors. In Bourne-derived shells you can do this by:

TERM=xterm-color; export TERM

In csh-derived shells with:

setenv TERM xterm-color