hackerb9 / lsix

Like "ls", but for images. Shows thumbnails in terminal using sixel graphics.
GNU General Public License v3.0
3.97k stars 129 forks source link

Seeing `+`s instead of an image #76

Closed artemave closed 1 month ago

artemave commented 1 month ago

I build tmux with --enable-sixel and I am seeing this:

❯ lsix ~/Pictures
Recursing on /home/artem/Pictures
SIXEL IMAGE (82x9)++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

What am I doing wrong?

hackerb9 commented 1 month ago

Does it work correctly in your terminal without tmux?

artemave commented 1 month ago

Yes. it works in xterm -ti vt340

hackerb9 commented 1 month ago

It looks like tmux is using the plus marks to reserve space where the image will be placed. What do you see when you do this:

convert rose: six:

If you still see plus marks still, then the problem is something with tmux, not lsix.

artemave commented 1 month ago
❯ convert rose: six:
SIXEL IMAGE (7x2)
+++++++

Actually, I've just realized that my problem is kitty. If I attach to tmux inside wezterm lsix works as advertised. Thank you for your help!