Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Terminal pixel art
(
gist.github.com
)
13 points
by
potomak
on Oct 24, 2011
|
hide
|
past
|
favorite
|
6 comments
potomak
on Oct 24, 2011
|
next
[–]
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.
chaosfox
on Oct 24, 2011
|
parent
|
next
[–]
why are you using tput ? why not print the ANSI codes directly with a library like this:
http://flori.github.com/term-ansicolor/
potomak
on Oct 24, 2011
|
root
|
parent
|
next
[–]
Because I don't want to introduce dependencies, but I think I should try it! Thanks for the feedback
chaosfox
on Oct 24, 2011
|
root
|
parent
|
next
[–]
Even so, take a look at how the library is implemented. It is better than calling tput which is kinda dirty.
potomak
on Oct 24, 2011
|
root
|
parent
|
prev
|
next
[–]
here it is
https://gist.github.com/1308580#file_terminal_colors_using.r...
derleth
on Oct 24, 2011
|
prev
[–]
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: