Set TERM to xterm-256color if gnome-terminal.