From: Iain Patterson Date: Tue, 1 Nov 2011 17:46:57 +0000 (+0000) Subject: Support font changing in tmux 1.5. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=ca42bf199003dd0a24128b89512c16d459318526;p=profile.git Support font changing in tmux 1.5. As of version 1.5 tmux supports sending raw escape sequences to the underlying terminal. The sequences must be prefixed by the magic sequence ESC P tmux ; ESC. --- diff --git a/opt/bin/ufont b/opt/bin/ufont index 09e656a..94a9b8a 100755 --- a/opt/bin/ufont +++ b/opt/bin/ufont @@ -14,5 +14,6 @@ if [ -z "$size" ]; then fi escape="$font:pixelsize=$size" -echo -e "\033]710;$escape\007\033]711;$escape\007" +[ -n "$TMUX" ] && tmux_prefix="\033Ptmux;\033" +echo -en "$tmux_prefix\033]710;$escape\007$tmux_prefix\033]711;$escape\007" exit $?