Probs dont need but..
Check Terminal:
echo $TERM
Check if TERM supports 256 colors: (Outputs Integer)
tput colors
Check flags set for TERM:
infocmp -x TERM_GOES_HERE
I fixed the issue using the first article. But the tput colors command returned 0.
The terminfo just didnt have all the correct flags set.
However the output of the script clearly showed it working! 😄