Commit a2769a93 authored by Dylan Araps's avatar Dylan Araps

image: Fixed images in kitty on macOS. Closes #994

parent 8e3be520
...@@ -3636,6 +3636,9 @@ get_term_size() { ...@@ -3636,6 +3636,9 @@ get_term_size() {
term_width="${term_size[2]/t*}" term_width="${term_size[2]/t*}"
fi fi
[[ "$image_backend" == "kitty" ]] && \
IFS=x read -r term_width term_height < <(kitty icat --print-window-size)
# Get terminal width/height if \e[14t is unsupported. # Get terminal width/height if \e[14t is unsupported.
if (( "${term_width:-0}" < 50 )) && [[ "$DISPLAY" && "$os" != "Mac OS X" ]]; then if (( "${term_width:-0}" < 50 )) && [[ "$DISPLAY" && "$os" != "Mac OS X" ]]; then
if type -p xdotool >/dev/null 2>&1; then if type -p xdotool >/dev/null 2>&1; then
......
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