uiua icon indicating copy to clipboard operation
uiua copied to clipboard

Sixel encoding for images and output for terminals

Open TeddyDD opened this issue 1 year ago • 7 comments

Just an idea, sixel format could be used to display images in terminal.

TeddyDD avatar Sep 30 '23 20:09 TeddyDD

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

kaikalii avatar Oct 08 '23 07:10 kaikalii

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

exxjob avatar Jan 20 '24 03:01 exxjob

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

BaerLKR avatar Sep 12 '24 09:09 BaerLKR

It would be part of &ims.

kaikalii avatar Sep 12 '24 13:09 kaikalii

This should get closed, since #557 just got merged.

JoaoFelipe3 avatar Sep 28 '24 20:09 JoaoFelipe3

Can we get other method of enabling it? I'd rather not mess with TERM variable. Perhaps env like UIUA_ENABLE_SIXEL or something?

TeddyDD avatar Sep 28 '24 23:09 TeddyDD

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

BaerLKR avatar Sep 29 '24 07:09 BaerLKR