Hardcode iterm2 mode to iterm2

This commit is contained in:
Dylan 2016-03-30 10:20:06 +11:00
parent ec9bfefbf3
commit d7bf5da48e

View file

@ -2803,6 +2803,13 @@ if [ "$image" != "off" ]; then
# Hide the cursor # Hide the cursor
printf "\033[?25l" printf "\033[?25l"
# If iterm2 is detected use iterm2 backend.
if [ -n "$ITERM_PROFILE" ]; then
image_backend="iterm2"
else
image_backend="w3m"
fi
# Find w3mimgdisplay # Find w3mimgdisplay
[ "$image_backend" == "w3m" ] && \ [ "$image_backend" == "w3m" ] && \
[ "$image" != "ascii" ] && \ [ "$image" != "ascii" ] && \