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

gnome-terminal + vte with sixel support, but lsix not working #66

Closed qrockz closed 9 months ago

qrockz commented 9 months ago

GNOME Terminal Version 3.51.0 for GNOME 46 Using VTE version 0.75.0 +BIDI +GNUTLS +ICU +SIXEL +SYSTEMD

But lsix still not working despite vte provides sixel support as you can see above. Error: Your terminal does not report having sixel graphics support.

hackerb9 commented 9 months ago

Thanks for reporting the problem. Is sixel now in the standard version of GNOME Terminal? Or is this a fork?

To debug this, please check the device attribute codes that lsix shows: those are the features which your terminal has reported as being available. A terminal that supports sixel will have the number "4". Then try this:

convert  foo.jpg  -geometry 800x480  sixel:-

If using convert by hand works and there is no "4" in the list, then that means your terminal has a bug which should be reported. Please let me know what your tests reveal.

qrockz commented 9 months ago

Ah, I had to enable it in Gnome-Terminal GUI/Edit/Preferences/Compatibility/"Enable SIXEL images" screenshot

Is sixel now in the standard version of GNOME Terminal? Or is this a fork?

I don't know if this Checkbox Enable SIXEL images was there before I've recompiled vte with -Dsixel=true option + gnome-terminal. I've followed these constructions:

       git clone https://github.com/GNOME/vte.git
       cd vte
       meson build -Dsixel=true
       ninja -C build install
       sudo ldconfig
       sudo apt install appstream
       git clone https://gitlab.gnome.org/GNOME/gnome-terminal
       cd gnome-terminal
       meson build -Dsearch_provider=false
       ninja -C build install