[Bug 1876513] Re: .bashrc color_prompt check only works for xterm-color, not xterm-256color

Ubuntu Foundations Team Bug Bot 1876513 at bugs.launchpad.net
Wed Aug 5 16:28:50 UTC 2020


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

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to base-files in Ubuntu.
https://bugs.launchpad.net/bugs/1876513

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

Status in base-files package in Ubuntu:
  Confirmed

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

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

  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;;
  esac

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/base-files/+bug/1876513/+subscriptions



More information about the foundations-bugs mailing list