echo打印颜色

 echo -e '\e[31mERROR when compile \e[m'

 echo -e '\e[32mERROR when compile \e[m' 

 echo -e '\e[33mERROR when compile \e[m' 

 echo -e '\e[34mERROR when compile \e[m' 

 echo -e '\e[35mERROR when compile \e[m' 

 echo -e '\e[36mERROR when compile \e[m'

对应结果: 

 
原文地址:https://www.cnblogs.com/welkinwalker/p/1986340.html