* 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 - fix underscore, italics, hidden
* usr/lib/byobu/.dirs: * usr/lib/byobu/.dirs:
- ensure that the cache dir gets created - 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 -- Dustin Kirkland <kirkland@ubuntu.com> Thu, 11 Aug 2011 10:31:31 -0500

View file

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

View file

@ -52,14 +52,14 @@ color_map() {
c) _RET=cyan,dim ;; c) _RET=cyan,dim ;;
w) _RET=white,dim ;; w) _RET=white,dim ;;
d) _RET=color0,dim ;; d) _RET=color0,dim ;;
K) _RET=black ;; K) _RET="#555555" ;;
R) _RET=red ;; R) _RET="#FF0000" ;;
G) _RET=green ;; G) _RET="#00FF00" ;;
Y) _RET=yellow ;; Y) _RET="#FFFF00" ;;
B) _RET=blue ;; B) _RET="#0000FF" ;;
M) _RET=magenta ;; M) _RET="#FF00FF" ;;
C) _RET=cyan ;; C) _RET="#00FFFF" ;;
W) _RET=white ;; W) _RET="#FFFFFF" ;;
*) _RET= ;; *) _RET= ;;
esac 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 # Must set default-command to $SHELL, in order to not source ~/.profile
# BUG: Should *not* hardcode /bin/bash here # BUG: Should *not* hardcode /bin/bash here
set -g default-terminal "screen-256color"
set -g terminal-overrides 'xterm*:smcup@:rmcup@' set -g terminal-overrides 'xterm*:smcup@:rmcup@'
set -g default-command /bin/bash set -g default-command /bin/bash
set -g status-bg black set -g status-bg black