Echo display color

Source: Internet
Author: User

In the shell script, ECHO Displays the content in color, and ECHO Displays the content in color. You need to use the-e parameter.

Echo display color format:

Echo-e "\ e [font display format; font color; background color M string \ e [M" Description: font display format: 1 is highlighted. 4 is an underline. 5 is flashing. Font color: range: 30--37 30: Black 31: Red 32: Green 33: yellow color 34: Blue 35: Purple 36: Sky Blue 37: white background color: range: 40--47 40: black Bottom 41: Red Bottom 42: green bottom 43: yellow bottom 44: Blue bottom 45: Purple bottom 46: sky blue bottom 47: white bottom \ e [M: End font color display.


This article is from the "Hezhang" blog, please be sure to keep this source http://hezhang.blog.51cto.com/1347601/1439014

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.