iterm2 xoffset take a pixel value instead of terminal cells

This commit is contained in:
Dylan 2016-03-13 10:59:22 +11:00
parent f954552baf
commit 31ea9fd6f4
1 changed files with 1 additions and 1 deletions

View File

@ -2747,7 +2747,7 @@ if [ "$image" != "off" ] && [ "$image" != "ascii" ]; then
;;
"iterm2")
printf "\033[${xoffset}C"
printf "\033[$((xoffset / font_width))C"
printf "%b%s\a\n" "\033]1337;File=width=${image_size}px;height=${image_size}px;inline=1:$(base64 < "$img")"
;;
esac