4 ms·
why 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-an
by chaosfox 15y ago
why 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...