Quick (Temporary) Way
Enter this whenever you open a new terminal:
export TERM=xterm-256color
Works for as long as the window is open.
Works-but-dirty Way
Append the line above to ~/.bashrc
.
The problem with that, though, is that editing $TERM
in .bashrc
is a bad idea because doing that automatically makes any terminal using bash
try to use it regardless of whether it actually supports 256 colors or not (like when SSH-ing or accessing the terminals with Ctrl+Alt+F1 to F6).
What I did, though is that since xfce4-terminal
sets the $COLORTERM
value to xfce4-terminal
, I, instead appended the following to .bashrc
:
if [ "$COLORTERM" == "xfce4-terminal" ] ; then
export TERM=xterm-256color
fi
That way, the relevant $TERM
edit only happens if you're using xfce4-terminal
, which just sets it to xterm
anyway (and changing the emulation environment results in that "VTE" message).
References: