3 ms·
There are already terminals and cat implementations that can display 24-bit images just fine in the terminal, by using special escape codes that each encode a p
by jitl 9y ago
There are already terminals and cat implementations that can display 24-bit images just fine in the terminal, by using special escape codes that each encode a pixel. No changes to the IO model needed.
https://github.com/saitoha/PySixel/blob/master/README.rst https://github.com/saitoha/PySixel/blob/master/README.rst
- jstimpfle 9y agoSure - this is what I mean by "protocol". In the case of the image format you linked even cat does work, because the image format contains pre-rendered escape sequences. This does not work in general (e.g. for JPEG or other formats) - where you need a program that does the transformation into escape sequences.