Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Terminal pixel art (gist.github.com)
13 points by potomak on Oct 24, 2011 | hide | past | favorite | 6 comments


I made it for http://drawbang.com upcoming API, just put before this script a simple GET request to any Draw! image and show it in your terminal.


why are you using tput ? why not print the ANSI codes directly with a library like this: http://flori.github.com/term-ansicolor/


Because I don't want to introduce dependencies, but I think I should try it! Thanks for the feedback


Even so, take a look at how the library is implemented. It is better than calling tput which is kinda dirty.



Is there no way to call the terminfo API from Ruby? No way to call ncurses?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: