3 ms·
Terminal pixel art
- potomak 15y agoI made it for http://drawbang.com http://drawbang.com upcoming API, just put before this script a simple GET request to any Draw! image and show it in your terminal.
- chaosfox 15y agowhy are you using tput ? why not print the ANSI codes directly with a library like this: http://flori.github.com/term-ansicolor/ http://flori.github.com/term-ansicolor/
- potomak 15y agoBecause I don't want to introduce dependencies, but I think I should try it! Thanks for the feedback
- chaosfox 15y agoEven so, take a look at how the library is implemented. It is better than calling tput which is kinda dirty.
- potomak 15y agohere it is https://gist.github.com/1308580#file_terminal_colors_using.rb https://gist.github.com/1308580#file_terminal_colors_using.r...
- derleth 15y agoIs there no way to call the terminfo API from Ruby? No way to call ncurses?