X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=opt%2Fbin%2Fusize;h=39d8110f6176f27fe98ab1b0a8f90d57605a7562;hb=55a81c443c3a4b37bd131c9ac609259166028b61;hp=7221e60155824ac24ac5998730b33f1a85bbb1e6;hpb=094bc317ad7d7907a5c87477530db4d24bf1c534;p=profile.git diff --git a/opt/bin/usize b/opt/bin/usize index 7221e60..39d8110 100755 --- a/opt/bin/usize +++ b/opt/bin/usize @@ -7,6 +7,7 @@ width=${COLUMNS:-80} height=${LINES:-24} +tmux_prefix= case $# in 0) @@ -17,5 +18,6 @@ case $# in 2) width=$1; height=$2;; esac -echo -e "\033[8;$height;$width;t" +[ -n "$TMUX" ] && tmux_prefix="\033Ptmux;\033" +echo -e "$tmux_prefix\033[8;$height;$width;t" exit 0