Comment 11 for bug 778801

Micah Cowan (micahcowan) wrote :

FWIW, the workaround I've been using for some time now is:

if [ \( "x$COLORTERM" = "xgnome-terminal" -o "x$COLORTERM" = "xTerminal" -o "x$COLORTERM" = "xxfce4-terminal" \) -a "x$TERM" = "xxterm" ] &&
        infocmp xterm-256color >/dev/null 2>&1; then

in my .bashrc or what have you. The "Terminal" was what worked in Precise and prior; "xfce4-terminal" is what COLORTERM is now set to.

(The infocmp command verifies that there is a terminfo database entry for "xterm-256color", so it doesn't get set and then terminal apps haven't a clue how to talk to the terminal.)