Friday 30 March 2012

Unix - I don't know what kind of terminal you are on - all I have is 'xterm-color'.


If you receive the following error, typically when using text editors like vi, then you need to change your Terminal (Environment variable: TERM)

xterm-color: Unknown terminal type
I don't know what kind of terminal you are on - all I have is 'xterm-color'.


Depending on which shell your using, set the following...

csh shell
Code Snippet
  1. setenv TERM xterm
End of Code Snippet

bash
Code Snippet
  1. export TERM='xterm'
End of Code Snippet

xterm is an example of a terminal emulator. You can use whichever you would like, it's simply a program that emulates a video terminal within some display architecture. Programs gather information from the terminal your currently using (Set in TERM) to aide the display of the content/program.

Here is a good list of various terminals you can try: List of Terminals

2 comments:

Mahung said...

I have tcsh so neither suggestion works for me.

Anonymous said...

Awesome, it worked for me.
I asked lot of people but again this blog helped me