tput setaf 2 -- queries the terminfo database for the proper escape sequence for setting the terminal foreground to color 2 (green) and echoes it, turning your foreground that color
tput setaf 0 -- ditto, but for black background