News for hackers. Stuff that matters.
Re:Show HN: Termplay: Play videos in your terminal by majewsky on Tuesday June 20, 2017 @05:51AM (#14593263)
xterm and Konsole allow to display images in the terminal. To check it out, install w3m with the w3m-img patch (in Debian, the "w3m-img" package; in Arch Linux, the "w3m" and "imlib2" packages) and open a webpage that contains plain <img src="..." /> tags.

Example screenshot from Konsole: https://imgur.com/a/D98Kl (showing https://en.wikipedia.org/wiki/xterm)

The rendering is really buggy. Images glitch away all the time, possibly until w3m issues a redraw event, but it kinda sorta works.

Some day, I'll have to dig into either the w3m source or the Konsole source and figure out which ANSI escapes are being used for that. (If someone has a link to a spec or sth, that'd be much appreciated.)

Re:Show HN: Termplay: Play videos in your terminal by LEGOlord208 on Tuesday June 20, 2017 @11:39AM (#14595432)
You could do like the "fbi" tool, which uses the framebuffer (/dev/fb0) to draw to the screen. And that works for the TTY, but doesn't in Konsole.

Others have also told me about Sixels, so I'll probably add support for that at least.

Re:Show HN: Termplay: Play videos in your terminal by LEGOlord208 on Tuesday June 20, 2017 @02:48PM (#14597349)
Update: Sixels are now supported :)

Try it out with one of the terminals listed in https://github.com/saitoha/libsixel#terminal-requirements