* usr/bin/byobu, usr/lib/byobu/.shutil, usr/share/byobu/profiles/tmux:

- get 256 colors working in tmux
This commit is contained in:
Dustin Kirkland 2011-08-16 16:47:39 -07:00
commit cf687ac09c
4 changed files with 12 additions and 9 deletions

2
debian/changelog vendored
View file

@ -65,6 +65,8 @@ byobu (4.30) unreleased; urgency=low
- fix underscore, italics, hidden
* usr/lib/byobu/.dirs:
- ensure that the cache dir gets created
* usr/bin/byobu, usr/lib/byobu/.shutil, usr/share/byobu/profiles/tmux:
- get 256 colors working in tmux
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 11 Aug 2011 10:31:31 -0500

View file

@ -42,7 +42,7 @@ fi
# Determine backend
case "$0" in
*byobu-screen) export BYOBU_BACKEND="screen" ;;
*byobu-tmux) export BYOBU_BACKEND="tmux" ;;
*byobu-tmux) export BYOBU_BACKEND="tmux" TERM="screen-256color" ;;
esac
# Sanitize the environment

View file

@ -52,14 +52,14 @@ color_map() {
c) _RET=cyan,dim ;;
w) _RET=white,dim ;;
d) _RET=color0,dim ;;
K) _RET=black ;;
R) _RET=red ;;
G) _RET=green ;;
Y) _RET=yellow ;;
B) _RET=blue ;;
M) _RET=magenta ;;
C) _RET=cyan ;;
W) _RET=white ;;
K) _RET="#555555" ;;
R) _RET="#FF0000" ;;
G) _RET="#00FF00" ;;
Y) _RET="#FFFF00" ;;
B) _RET="#0000FF" ;;
M) _RET="#FF00FF" ;;
C) _RET="#00FFFF" ;;
W) _RET="#FFFFFF" ;;
*) _RET= ;;
esac
}

View file

@ -73,6 +73,7 @@ set-window-option -g monitor-activity on
# Must set default-command to $SHELL, in order to not source ~/.profile
# BUG: Should *not* hardcode /bin/bash here
set -g default-terminal "screen-256color"
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
set -g default-command /bin/bash
set -g status-bg black