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

lsix doesn't work on Wezterm + Windows + Git Bash shell #69

Open ykhan21 opened 6 months ago

ykhan21 commented 6 months ago

Are we sixel yet says that Wezterm supports sixel graphics, though lsix doesn't seem to work with it on Windows.

I've included some relevant information below.

username@LENOVO MINGW64 /c/Users/username/repos/lsix (master)
$ file ~/Pictures/mainframe.png
/c/Users/username//Pictures/mainframe.png: PNG image data, 854 x 480, 8-bit/color RGBA, non-interlaced

username@LENOVO MINGW64 /c/Users/username/repos/lsix (master)
$ wezterm -V
wezterm 20231228-084719-ff274374

username@LENOVO MINGW64 /c/Users/username/repos/lsix (master)
$ magick -version
Version: ImageMagick 7.1.1-25 Q16-HDRI x64 98e7513:20231230 https://imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Channel-masks(64-bit) Cipher DPC HDRI Modules OpenCL OpenMP(2.0)
Delegates (built-in): bzlib cairo flif freetype gslib heic jng jp2 jpeg jxl lcms lqr lzma openexr pangocairo png ps raqm raw rsvg tiff webp xml zip zlib
Compiler: Visual Studio 2022 (193732826)

username@LENOVO MINGW64 /c/Users/username/repos/lsix (master)
$ echo $COMSPEC
C:\WINDOWS\system32\cmd.exe

username@LENOVO MINGW64 /c/Users/username/repos/lsix (master)
$ echo $SHELL
/usr/bin/bash

username@LENOVO MINGW64 /c/Users/username/repos/lsix (master)
$ bash -version
GNU bash, version 5.2.21(1)-release (x86_64-pc-msys)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

username@LENOVO MINGW64 /c/Users/username/repos/lsix (master)
$ lsix ~/Pictures/mainframe.png
bash: lsix: command not found

username@LENOVO MINGW64 /c/Users/username/repos/lsix (master)
$ ./lsix ~/Pictures/mainframe.png
Error: Your terminal does not report having sixel graphics support.

Please use a sixel capable terminal, such as xterm -ti vt340, or
ask your terminal manufacturer to add sixel support.

You may test your terminal by viewing a single image, like so:

convert  foo.jpg  -geometry 800x480  sixel:-

If your terminal actually does support sixel, please file a bug
report at http://github.com/hackerb9/lsix/issues

Please mention device attribute codes: ^[[?61;6;7;22;23;24;28;32;42c

username@LENOVO MINGW64 /c/Users/username/repos/lsix (master)
$ echo $TERM
xterm-256color