tput sgr0 # default terminal
tput setab [1-7] # Set the background color
tput setaf [1-7] # Set the foreground color
color is
0 black
1 red
2 green
3 yellow
4 blue
5 magenta
6 cyan
7 white
e.g. color output in red
# echo "`tput setaf 1`Red Color`tput sgr0`"
Red Color
Recent Comments