How can I print lines to the console in a certain color?
How can I print lines to the console in a certain color?
IE. Hello World in a red font, green font, etc. TIA |
Code:
printf "\033[2;32mHello World\033[0m" |
Also works with echo
|
Recent emulators support 256 colours. Deatails: https://en.wikipedia.org/wiki/ANSI_escape_code#Colors
|
Quote:
I got the following: Code:
$ ./color.sh |
Quote:
|
All times are GMT -5. The time now is 11:50 AM. |