bashrc doesn't consider *-256color TERMs to be color
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
When opening up a login session on an Ubuntu server, if the terminal is 256 color, the bashrc does not consider it to have color support, and the prompt is not colorized.
Examples of this are when `TERM` is set to `xterm-256color` or `screen-256color` (as when connecting from a `tmux` session).
Typically, I modify the bashrc so the color prompt section looks like the following:
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color) color_prompt=yes;;
*-256color) color_prompt=yes;;
esac
This has affected me since I've been using any 256color terminal emulator in every version of ubuntu since 10.04.
So, in summary, when I ssh to a machine with TERM=xterm-
Status changed to 'Confirmed' because the bug affects multiple users.