uiua
uiua copied to clipboard
Sixel encoding for images and output for terminals
Just an idea, sixel format could be used to display images in terminal.
I support this. I have other things higher in my todo, but if anyone wants to implement this, know that you cannot use any of the existing Rust crates that depend on libsixel, as they require it as a local dependency - something I do not want to requre. I suggest looking at icy_sixel
Just to note: terminal emulators have different ideas of what's worth supporting, so compatibility can be a pain. There's ReGIS, Sixel, Kitty, iTerm2, and finally mosaics and ueberzug which are entirely different things. You might find Chafa and NotCurses most flexible, both seem to have Rust wrappers, but I can't vouch for those. https://www.arewesixelyet.com
Should sixel be a output format, like png, jpg, ... or should it be in the show_image
function?
I am not sure what way is better
It would be part of &ims.
This should get closed, since #557 just got merged.
Can we get other method of enabling it? I'd rather not mess with TERM variable. Perhaps env like UIUA_ENABLE_SIXEL
or something?
Can we get other method of enabling it? I'd rather not mess with TERM variable. Perhaps env like
UIUA_ENABLE_SIXEL
or something?
that would easily be possible i don't know where to document it tho, so that the user knows the env var does something