* usr/lib/byobu/ip_address, usr/lib/byobu/.shutil,

usr/share/byobu/profiles/common:
  - fix bold printing
This commit is contained in:
Dustin Kirkland 2011-08-20 10:47:04 -07:00
commit 58fd9a1660
4 changed files with 10 additions and 5 deletions

3
debian/changelog vendored
View file

@ -76,6 +76,9 @@ byobu (4.30) unreleased; urgency=low
- add session selection support for tmux
* usr/bin/byobu, usr/bin/byobu-janitor, usr/lib/byobu/.shutil:
- flatten bold/dim/bright modifiers when in 8-color mode
* usr/lib/byobu/ip_address, usr/lib/byobu/.shutil,
usr/share/byobu/profiles/common:
- fix bold printing
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 11 Aug 2011 10:31:31 -0500

View file

@ -27,8 +27,8 @@ color_screen() {
-) printf "$ESC{-}" ;;
--) printf "$ESC{-} " ;;
esc) printf "$ESC" ;;
bold1) [ -n "$SCREEN_TERM" ] && printf "$ESC{=b }" ;;
bold2) [ -n "$SCREEN_TERM" ] && printf "$ESC{+b }" ;;
bold1) [ -n "$SCREEN_TERM" ] && printf "$ESC{=b }" || printf "$ESC{= }" ;;
bold2) [ -n "$SCREEN_TERM" ] && printf "$ESC{+b }" || printf "$ESC{= }" ;;
none) printf "$ESC{= }" ;;
invert) printf "$ESC{=r }" ;;
*)
@ -49,7 +49,7 @@ color_screen() {
}
color_map() {
local mod
local mod=
[ -n "$SCREEN_TERM" ] && mod=",dim"
case "$1" in
k) _RET="black$mod" ;;

View file

@ -55,7 +55,9 @@ __ip_address() {
fi
;;
esac
color bold2; printf "%s" "$ipaddr"; color --
if [ -n "$ipaddr" ]; then
color bold2; printf "%s" "$ipaddr"; color --
fi
}
# vi: syntax=sh ts=4 noexpandtab

View file

@ -79,7 +79,7 @@ setenv SSH_AUTH_SOCK $BYOBU_CONFIG_DIR/.ssh-agent
caption always "%1001`%?%-Lw%50L>%?%{=r}%n*%f %t%?(%u)%?%{-}%12`%?%+Lw%?%11` %=%12`%1002`%10`%<"
# Status string, last line
hardstatus string '%1003`%=%1004`'
hardstatus string '%12`%1003`%=%1004`'
# NOTE: Older version of Screen have an arbitrary limit of only being able
# to change colors 16 times in this 'hardstatus string'.