Solved Unknown terminal: xterm-256colors

In the process of trying to configure some app - possibly emacs I managed to set the terminal type to xterm-256colors, and now I'm having problems running various apps, even ee() which comes up with the error:-

Code:
Error opening terminal: xterm-256colors.

I'm guessing that this must have been set in either ~/.cshrc or ~/.logon or ~/.profile but don't any reference to such a setting.

When starting LXterminal it says:-

Code:
csh: The terminal database could not be opened.
csh: using dumb terminal settings.

Although if I start Xfce terminal it automatically starts midnight commander, which I am unable to start it in LXterminal.

If I enter set, I get:-

Code:
term    xterm-256colors

I jusr can't figure out where it comes from...
 
Oops!

Running set term=xterm-256color gets around my initial problem but I can't see where this should be set...
 
Possibly $HOME/.Xdefaults (or .Xresources). Mine has
Code:
urxvt*termName:rxvt-unicode-256color
(As is probably obvious, urxvt is my usual terminal of choice.).
 
I'm guessing that this must have been set in either ~/.cshrc or ~/.logon or ~/.profile but don't any reference to such a setting.
Also check the system-wide files; /etc/csh.cshrc and /etc/profile.
 
Who put it there? I just looked on my machine (a 12.2 install), and /etc/csh.cshrc is empty, except for three comment lines.
 
Well, thanks for coming back and telling us. There's a good chance that post will help someone else in the future.
 
Back
Top