.bashrc color_prompt check only works for xterm-color, not xterm-256color

Bug #1876513 reported by Yannik
This bug affects 2 people
Affects Status Importance Assigned to Milestone
base-files (Ubuntu)

Bug Description

The `share/dot.bashrc` file checks like this whether to enable `color_prompt`:

case "$TERM" in
    xterm-color) color_prompt=yes;;

Nowaways, most terminals support 256 colors (instead of 8 like xterm-color). Their $TERM will usually be something like `xterm-256color`.

Accordingly, this check was modified in the `skel`-package `/etc/skel/.bashrc` like this:

case "$TERM" in
    xterm-color|*-256color) color_prompt=yes;;

I would suggest the same modification be done in the base-files .bashrc.

Tags: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in base-files (Ubuntu):
status: New → Confirmed
Revision history for this message
Sean Bright (sbright) wrote :

It's a trivial patch, but included for completeness.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "0001-share-dot.bashrc-color-support-for-256-color-terms.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.