Support font changing in tmux 1.5.
[profile.git] / opt / bin / ufont
index 09e656a..94a9b8a 100755 (executable)
@@ -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 $?