Commit f6b1ab48 authored by Dylan's avatar Dylan

Fix image sizing in tmux

parent c773bc24
...@@ -1805,7 +1805,11 @@ getimage () { ...@@ -1805,7 +1805,11 @@ getimage () {
esac esac
# Get terminal width and height # 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 # The ascape code above prints the output AFTER the prompt so this
# loop below reads it as input. wtf xterm # loop below reads it as input. wtf xterm
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment