Commit a575c01b authored by Dylan Araps's avatar Dylan Araps

iTerm2: Fix image mode in tmux, closes #678

parent 9b0c8fff
...@@ -2416,7 +2416,12 @@ display_image() { ...@@ -2416,7 +2416,12 @@ display_image() {
;; ;;
"iterm2") "iterm2")
printf "%b\a\n" "\033]1337;File=width=${width}px;height=${height}px;inline=1:$(base64 < "$image")" iterm_cmd="\033]1337;File=width=${width}px;height=${height}px;inline=1:$(base64 < "$image")"
# Tmux requires an additional escape sequence for this to work.
[[ -n "$TMUX" ]] && iterm_cmd="\033Ptmux;\033${iterm_cmd}\033\\"
printf "%b\a\n" "$iterm_cmd"
;; ;;
"tycat") "tycat")
......
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