[Bug 1210995] [NEW] bashrc doesn't consider *-256color TERMs to be color
Spike Grobstein
spike666 at mac.com
Sun Aug 11 14:07:03 UTC 2013
Public bug reported:
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-256color, I
expect my prompt to be green, but it shows up as the default terminal
color. changing TERM to xterm-color fixes this, but I don't get full-
color vim.
** Affects: bash (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/1210995
Title:
bashrc doesn't consider *-256color TERMs to be color
Status in “bash” package in Ubuntu:
New
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-256color, I
expect my prompt to be green, but it shows up as the default terminal
color. changing TERM to xterm-color fixes this, but I don't get full-
color vim.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1210995/+subscriptions
More information about the foundations-bugs
mailing list