ECHO-E: Enable conversion of backslash control characters
Example:
Echo-e "\033[40;37m Black Bottom white Kongring \033[0m"
Echo-e "\033[41;37m Red bottom white Kongring \033[0m"
Echo-e "\033[42;37m Green bottom white Kongring \033[0m"
Echo-e "\033[43;37m Yellow xxxxx\033[0m"
Echo-e "\033[44;37m Blue bottom White xxxxx\033[0m"
Echo-e "\033[45;37m Purple xxxxx\033[0m"
Echo-e "\033[46;37m sky blue White xxxxx\033[0m"
Echo-e "\033[47;30m black character xxxxx\033[0m on white background"
Effect:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/54/88/wKiom1SFdVmhALrSAABoc5FZfxw820.jpg "title=" 9opm{% 7K} ' qy1}pz[w16ifp.jpg ' alt= "wkiom1sfdvmhalrsaaboc5fzfxw820.jpg"/>
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/> The following is setting the font color
Red_color= ' \e[1;31m '
Green_color= ' \e[1;32m '
Yellow_color= ' \e[1;33m '
Blue_color= ' \e[1;34m '
res= ' \e[0m '
Examples of use :
Echo-e "$RED _color Apple $RES"
This article from "As always" blog, declined reprint!
Shell Font Color