4 ms·
Nice. Reminds of the ANSI Art I would see on a BBS back in the day. Is there a way to export the art so that it could be printed in the Terminal. Would love t
by flanbiscuit 9y ago
Nice. Reminds of the ANSI Art I would see on a BBS back in the day. Is there a way to export the art so that it could be printed in the Terminal. Would love to add some art to some scripts
- fenwick67 9y agoI have worked on libraries for images in terminals [https://github.com/fenwick67/term-px https://github.com/fenwick67/term-px] but I never thought to make a simple image import / export tool so you could just `cat` the file to show it in a terminal. Now you gave me a weekend project.
- laumars 9y agoThere's already a few out there that does this. I use pixterm in one of my own projects: http://github.com/eliukblau/pixterm http://github.com/eliukblau/pixterm
- sebashwa 9y agoWow, cool project! If you want to collaborate on vixl44 for the feature to export something terminal-printable, feel free to do so
- fenwick67 9y agoFor those playing at home, I just made this work: https://codepen.io/fenwick/full/oGVQNX/ https://codepen.io/fenwick/full/oGVQNX/
- sebashwa 9y agoThis is great! I will go ahead and write a similar export function for vixl44.
- laumars 9y agoIt might be worth using the none standard but we'll supported true colour ANSI escape sequences. You'll get much better output that way (I've done lots of experimenting with images in the terminal and I found that gave me the best output and more reliably then the other ANSI hacks that are limited to only supporting one specific terminal emulator)
- jessemillar 9y agoYou should totally make a GitHub issue for that feature suggestion.
- sebashwa 9y agoThanks! Beautifying scripts is a usecase that didn't come to my mind so far. Awesome idea, I don't know why I didn't think about it! So far it is only possible to write your image to a file (which is just some json) or to export to svg, but it shouldn't be much trouble to get something which can be printed to terminal!
- sebashwa 9y agoHey just FYI: This is now possible with :exp FILENAME.ansi which dumps the corresponding ANSI escape sequences to a file