* usr/bin/byobu, usr/lib/byobu/include/constants:

- fix 256 color support
  - default to colors specified in the Ubuntu brand guidelines
    + http://design.canonical.com/the-toolkit/ubuntu-brand-guidelines/
This commit is contained in:
Dustin Kirkland 2012-02-23 14:35:53 -06:00
commit 5f16fb1ff2
3 changed files with 10 additions and 6 deletions

5
debian/changelog vendored
View file

@ -1,6 +1,9 @@
byobu (5.15) unreleased; urgency=low
* UNRELEASED
* usr/bin/byobu, usr/lib/byobu/include/constants:
- fix 256 color support
- default to colors specified in the Ubuntu brand guidelines
+ http://design.canonical.com/the-toolkit/ubuntu-brand-guidelines/
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 23 Feb 2012 08:04:07 -0600

View file

@ -95,7 +95,7 @@ case $BYOBU_BACKEND in
tmux)
# Use 256 colors if possible
if command -v tput >/dev/null; then
if [ "$(tput colors 2>/dev/null || echo 0)" = "256" ]; then
if [ "$(tput colors 2>/dev/null || echo 0)" = "256" ] || [ "$COLORTERM" = "gnome-terminal" ] || [ "$TERM" = "xterm" ]; then
[ -z "$SCREEN_TERM" ] && SCREEN_TERM="-2"
fi
fi

View file

@ -99,7 +99,8 @@ command -v greadlink >/dev/null 2>&1 && export BYOBU_READLINK="greadlink" || exp
command -v sensible-pager >/dev/null 2>&1 && export BYOBU_PAGER="sensible-pager" || export BYOBU_PAGER="less"
# Default colors
[ -n "$BYOBU_DARK" ] || export BYOBU_DARK="black"
[ -n "$BYOBU_LIGHT" ] || export BYOBU_LIGHT="white"
[ -n "$BYOBU_ACCENT" ] || export BYOBU_ACCENT="magenta"
[ -n "$BYOBU_HIGHLIGHT" ] || export BYOBU_HIGHLIGHT="red"
export BYOBU_DARK="#AEA79F" # WARM GREY
export BYOBU_LIGHT="#333333" # COOL GREY
export BYOBU_ACCENT="#75507B" # AUBERGINE
export BYOBU_HIGHLIGHT="#DD4814" # UBUNTU ORANGE