diff --git a/debian/changelog b/debian/changelog index 7f9a8b90..d98c6f9d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,9 @@ byobu (5.3) unreleased; urgency=low [ Dustin Kirkland ] * usr/share/byobu/profiles/tmux: - add some whitespace + * usr/bin/byobu, usr/share/byobu/profiles/tmux: LP: #908766 + - TERM must be 'screen', to work with: a) 256 colors, and + b) vim/mutt with bce; tmux does not support bce properly -- Dustin Kirkland Sun, 08 Jan 2012 20:28:08 -0600 diff --git a/usr/bin/byobu b/usr/bin/byobu index da977d1a..82568ea8 100755 --- a/usr/bin/byobu +++ b/usr/bin/byobu @@ -116,7 +116,7 @@ case $BYOBU_BACKEND in # Check if our terminfo supports 256 colors if command -v tput >/dev/null; then if [ "$(tput colors 2>/dev/null || echo 0)" = "256" ]; then - SCREEN_TERM="-T screen-bce" + SCREEN_TERM="-T screen" fi fi # Some users want to maintain separate configurations diff --git a/usr/share/byobu/profiles/tmux b/usr/share/byobu/profiles/tmux index d13919d3..c7bf4ff5 100644 --- a/usr/share/byobu/profiles/tmux +++ b/usr/share/byobu/profiles/tmux @@ -65,10 +65,13 @@ set-window-option -g aggressive-resize on set-window-option -g monitor-activity on #set-window-option -g xterm-keys on +# Cannot use: +# - screen-bce, screen-256color-bce: tmux does not support bce +# - screen-256color: vim broken without -bce +set -g default-terminal "screen" +set -g terminal-overrides 'xterm*:smcup@:rmcup@' # Must set default-command to $SHELL, in order to not source ~/.profile # BUG: Should *not* hardcode /bin/bash here -set -g default-terminal "screen-bce" -set -g terminal-overrides 'xterm*:smcup@:rmcup@' set -g default-command $SHELL set -g status-bg $BYOBU_DARK set -g status-fg $BYOBU_LIGHT