uiua-lang / uiua

A stack-based array programming language
https://www.uiua.org
MIT License
1.53k stars 107 forks source link

Sixel encoding for images and output for terminals #38

Open TeddyDD opened 11 months ago

TeddyDD commented 11 months ago

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

kaikalii commented 11 months ago

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

exxjob commented 7 months ago

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

BaerLKR commented 2 days ago

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

kaikalii commented 1 day ago

It would be part of &ims.