Where did you get the idea for 46?
Code:
col0=$(tput setaf 0) #0 black
col1=$(tput setaf 1) #1 red
col2=$(tput setaf 2) #2 green
col3=$(tput setaf 3) #3 yellow
col4=$(tput setaf 4) #4 blue
col5=$(tput setaf 5) #5 magenta
col6=$(tput setaf 6) #6 cyan
col7=$(tput setaf 7) #7 white
clr=$(tput sgr0) #clear
for i in $col{0..7}; do
echo ""$i"Hello world"$clr""
done
This does not give a color.
Code:
echo ""$(tput setaf 46)"Hello world"$clr""