-
Notifications
You must be signed in to change notification settings - Fork 36
Description
It would be very cool to be able to view an article's images in the reader, as some terminal emulators (Kitty, Ghostty, Konsole, and WezTerm) now support Kitty's Terminal graphics protocol.
I've done some digging and here's what I've found...
There is no plan for adding image support to bubbletea1, but at least there's the concept of a plan of adding it to lipgloss2.
You can also just print the image manually following the protocol, and there's a library written in Go, rasterm, to do exactly that. But I'm guessing that won't play nicely with the reader, so as an alternative you can manually draw the pixels in the terminal with the good ol' U+2584 character method, which is exactly what imgcat (written in Go and using bubbletea) does. This would have the added benefit of working in any terminal emulator, with the drawback of producing very low-res images.