From f6b1ab48876adcf2ce1457047e493c20ab04c375 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sun, 21 Feb 2016 11:32:02 +1100 Subject: [PATCH] Fix image sizing in tmux --- fetch | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fetch b/fetch index a016f6ac..c3724188 100755 --- a/fetch +++ b/fetch @@ -1805,7 +1805,11 @@ getimage () { esac # Get terminal width and height - printf "%b%s" '\033[14t' + if [ -n "$TMUX" ]; then + printf "%b\033Ptmux;\033\033[14t\033\\" + else + printf "%b%s" '\033[14t' + fi # The ascape code above prints the output AFTER the prompt so this # loop below reads it as input. wtf xterm