From ca42bf199003dd0a24128b89512c16d459318526 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Tue, 1 Nov 2011 17:46:57 +0000 Subject: [PATCH] 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. --- opt/bin/ufont | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 $? -- 2.20.1