3 ms·
Nice! In the 2nd screenshot, how is it showing the image? Is that a terminal that can render images, or some clever conversion to ascii art [there's some asci
by lsllc 7y ago
Nice! In the 2nd screenshot, how is it showing the image? Is that a terminal that can render images, or some clever conversion to ascii art [there's some ascii art related code in the onefetch repo].
- 1f60c 7y agoI think it's iTerm-specific.
- enriquto 7y agothis is possible with sixels, if you are really into it
- dyanaraps 7y agoIt uses `kitty` terminal's built in support for images. [0][1] [0] https://sw.kovidgoyal.net/kitty/graphics-protocol.html https://sw.kovidgoyal.net/kitty/graphics-protocol.html [1] https://github.com/o2sh/onefetch/blob/master/src/image_backends/kitty.rs https://github.com/o2sh/onefetch/blob/master/src/image_backe... Note: iTerm2 also has its own image display protocol and for something more generic there is Sixel or w3mimgdisplay (from w3m).