On a clean install of Ubuntu 12.10, the default gnome-terminal is reporting $TERM to be xterm where it should really be reporting xterm-256color. What is the best way of changing this? I'm avoiding putting this in my .bashrc as that's just asking for trouble.
|
You were well advised not to change your startup scripts, specially Gnome terminal, AFAIK, does not offer a configuration to change its
Then use the following command:
Just replace |
|||
|
|
|
For connecting with a terminal that's not able to do 256 colors. It'd be far better to detect the terminal specifically with I do it with:
|
|||||||||
|
|
While it's true that terminfo has xterm+256color ( Anyhow, What you have to do is to place the following piece of code in your
|
|||||||||||||
|
xtermis wrong because most applications won't work in 256-color mode unless it'sxterm-256colororscreen-256color(vim and tmux being the main ones I care about). Like @Freddy I would prefer not to set these in my shell profile, because I may be connecting from a different terminal type over SSH, and because it's really the terminal emulator's job to set this. I'm amazed that gnome-terminal doesn't provide multiple emulations. – Jim Stewart Mar 31 '13 at 2:48xterm-256colors. – egmont Apr 25 '15 at 23:39