lsix and xterm

In .Xresources

! XTERM
xterm*faceName: FantasqueSansMono-Regular
xterm*faceSize: 12

Start xterm with

xterm -ti vt340 -sh 6

vt340 seem to enable sixel support.

Get the lsix bash script.

Like “ls”, but for images. Shows thumbnails in terminal using sixel graphics.

lsix.png-eaI1fWed0zQVBDi-md

Default urxvt can’t and won’t.

Notes: this is how lsix checks for sixel support:
https://github.com/hackerb9/lsix/blob/3a431793a747df3f9340519555527da9b10d040a/lsix#L86

Another way

would be using w3m-img, w3mimgdisplay.

Cursor position

It is possible to store and restore cursor position.

tput sc
tput cup 23 45
tput rc