toot
toot copied to clipboard
Feature Request: Display images inline in terminals that support it
Some terminal emulators support displaying images in the terminal via an extension of the xterm protocol. It would be great if the TUI would display such images.
Partial list of terminal emulators that support displaying images in some fashion
Added a patch for this. You'll need to install a companion viewer app, 'chafa' available in most distros and https://github.com/hpjansson/chafa
With chafa and this patch you get surprisingly good character graphics in most terminals, but in iTerm2, Kitty, etc. you get pixel accurate images.
https://lists.sr.ht/~ihabunek/toot-discuss/%3Ceb069b5d-4d40-63b4-21e1-d1375c16c742%40mini%3E
I'd like to add The Enlightenment Terminal, Terminology to that list, which also supports images, sound, and videos via Terminal Control Sequences.
Terminology can usually be detected if the environment variable TERMINOLOGY is set to 1
Terminal support is entirely within the helper program; if you like you can test chafa with a jpg on your local system and see how it performs.
Terminal support is entirely within the helper program; if you like you can test chafa with a jpg on your local system and see how it performs.
I am genuinely really impressed with it, but for Terminals with native image support it doesn't seem the most ideal :thinking:
Terminology uses a unique protocol to display images - it doesn't use the Kitty, iTerm, or sixel protocols supported by chafa. I can add support for tycat to my patch and you can use that instead of chafa.
This looks like something that NotCurses could do.
https://notcurses.com/