Sunday, February 04, 2007

Trouble With Strange Characters -- Might be TERM

Occassionally, I have had users complain about strange characters when they use xterm or cmdtool. But most of the time, it has to do with their TERM variable. Here's what you can do to check for it.

#echo $TERM (see what value is in the variable)
If its output is not what you expected, set the correct value.

For Sun:
#export TERM

For most others:
#export TERM

For C shell:
#setenv TERM sun
#setenv TERM vt100

Note: TERM must match one of the terminal types listed in the /usr/lib/terminfo directory.

No comments: