Fix image sizing in tmux
This commit is contained in:
parent
c773bc242a
commit
f6b1ab4887
1 changed files with 5 additions and 1 deletions
6
fetch
6
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
|
||||
|
|
Loading…
Reference in a new issue