From 31ea9fd6f403ff312359b23bd94ad7aa52389a02 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sun, 13 Mar 2016 10:59:22 +1100 Subject: [PATCH] iterm2 xoffset take a pixel value instead of terminal cells --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index e8cc2aed..c56eaaf5 100755 --- a/neofetch +++ b/neofetch @@ -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