I've started building a TUI for Lemmy
files.catbox.moe
I'm not sure this is the right community.
I've been hoping for a TUI frontend for Lemmy for a while, but unfortunately none came out and I've decided to build a proof of concept on my own.
It's written in python with pythorhead, blessed and chafa.py and it's quite janky.
You are viewing a single comment
I went with chafa as it's terminal agnostic and supports various modes.
Then again, I'm not really sure a tui frontend needs high quality image rendering. Earlier I even considered going completely 1bit braille or just ASCII just so that the image doesn't take all of the focus at the expense of the post body.
As mentioned by another commenter, I believe opening the full image in an external viewer is a much better solution, not to mention easier to implement.
You could also look into using sixel. It's kinda like the kitty protocol but older and terminal agnostic.
https://en.m.wikipedia.org/wiki/Sixel
Thanks, I've only heard of sixel, but never really read into it. Sounds promising.
A suggestion is do it like neofetch and let the user choose. Amazing work.