4 ms·
Work in progress, but sixel support may be coming to mainline tmux: git clone git://github.com/tmux/tmux git switch sixel git checkout b1904c9b8db514133d3372
by csdvrx 7y ago
Work in progress, but sixel support may be coming to mainline tmux:
git clone git://github.com/tmux/tmux
git switch sixel
git checkout b1904c9b8db514133d3372aac13b2ff0b2093cc3
This will give you the "placeholder" box for sixels in terminals that do not support sixel (but you should use mlterm on Linux or mintty on Windows)
The upcoming feature is to replace this placeholder box by unicode art for the sixels, cf https://github.com/tmux/tmux/issues/1613 https://github.com/tmux/tmux/issues/1613 for the current discussion.
Then you will be able to break your dependency on the GUI just by using w3m and your favorites sites, whether your terminal supports sixel or not (but it should, it's just better!)
apt-get install libsixel1-bin
w3m -sixel -o display_image=1 google.com
Cf https://apple.stackexchange.com/questions/244930/how-do-i-view-inline-images-in-w3m/363376 https://apple.stackexchange.com/questions/244930/how-do-i-vi...
There are other apps with integrated sixel support like mikkuter for twitter, gnuplot (there was https://github.com/csdvrx/sixel-gnuplot https://github.com/csdvrx/sixel-gnuplot , but now the sixel backend is compiled by default in the official gnuplot-nox starting from debian-10)
At the moment, I'm working on a mutt hack rendering outlook emails with all their included thingies (images etc) into sixels.
If someone is looking for an idea, it'd be great to have a IRC client that replaces URL containing pictures by their sixels renditions, a bit like what lsix does ( https://github.com/hackerb9/lsix https://github.com/hackerb9/lsix )
- albertzeyer 7y agoYes. This (image support in general in Terminal emulators and Terminal multiplexers) is currently being actively discussed here: https://gitlab.freedesktop.org/terminal-wg/specifications/issues/12 https://gitlab.freedesktop.org/terminal-wg/specifications/is... Many important people are there, e.g. the Tmux maintainer/developer Nicholas Marriott, the Mintty developer, some Xterm.js developer, and others.
- csdvrx 7y agoThe discussions are very interesting, but I'm not sure they are going anywhere. Sixels might win by default. It's not a bad thing. Sixels in 16m colors are quite versatile. But let's suppose that, eventually, a better standard for terminal image support might emerge. Anything that can already support sixels won't be too hard to change to support this new standard, unless it doesn't use pixels -- though it would be neat if this standard was vector based, like ReGIS: https://en.wikipedia.org/wiki/ReGIS https://en.wikipedia.org/wiki/ReGIS - I want SVG in my terminal :-) For now, sixels already work reliably for most of the things I do. So now, I concentrate on the applications, to make sure most of my workflow can be console based.
- enriquto 7y agoI'm not really convinced by the general mindset of ths discussion. What programs need is not to display a "png file" inside the terminal. What you want is to access the individual pixels of a rectangular framebufer using serialized escape sequences. That way you can intetact with the images.