Shell input Display module script with color font

Source: Internet
Author: User

We usually need to output a color font when we write a script, and now we can pass it. Color.sh to introduce this script directly, using the variables inside, so that we can reduce the amount of time we normally write scripts


#颜色变量脚本展示

[[email protected] opt]# cat color.sh #!/bin/bash# Word color variable black= "\033[30m"            #黑色RED = "\033[31m"              #红色GREEN = "\033[32m"   #绿色YELLOW = "\033[33m"   #黄色BLUE = "\033[34m"   #蓝色PURPLE = "\033[ 35m "  #紫色SKY_GREEN =" \033[36m  "     #天绿色WHITE =" \033[37m "           #白色 # Word background color variable black_white= "\033[40;37m"        #黑底白字RED _white= "\033[41;37m"          #红底白字GREEN_WHITE = "\033[42;37m"         #绿底白字YELLOW_WHITE = "\033[43;37m"       #黄底白字BLUE_WHITE = "\033[44; 37m "        #蓝底白字PURPLE_WHITE =" \033[45;37m "     # Purple white white_black= "\033[47;30m"        #白底黑字SKY_BLUE_WHITE = "\033[46;37m"    #天蓝底白字 # Flash variable flicker= "\033[05m "#头部OUTPUT =" echo -e "#尾部TAILS =" \033[0m "#使用方法 $OUTPUT   $RED  " Red word "  $TAILS      $OUTPUT   $WHITE _black  "Black word on white"    $TAILS    $OUTPUT   $YELLOW $flicker  " Yellow Flash Refining "  $TAILS


#执行脚本

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/83/93/wKiom1d2M8fg4ItGAAAQrA8lB7k056.png-wh_500x0-wm_3 -wmp_4-s_520333999.png "title=" qq picture 20160701171043.png "alt=" Wkiom1d2m8fg4itgaaaqra8lb7k056.png-wh_50 "/>



This article is from the "Wsyht blog" blog, make sure to keep this source http://wsyht2015.blog.51cto.com/9014030/1794990

Shell input Display module script with color font

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.