tput命令

设置颜色命令:

tput setaf 1   // 设定颜色为红色
tput sgr0      // 设定回颜色为黑色
https://img.zhaoweiguo.com/knowledge/images/linuxs/shell_color.png