Eggen, Python font color and background color!

Source: Internet
Author: User

  1. The following is the corresponding color table:
  2. Format: \033[display mode; foreground color; background colour m
  3. Description
  4. Foreground background color
  5. ---------------------------------------
  6. 40 Black
  7. 41 Red
  8. 42 Green
  9. 43 Yellow Color
  10. 44 Blue
  11. 45 Purplish Red
  12. 46 Cyan Blue
  13. Panax Notoginseng 47 White
  14. Meaning of display mode
  15. -------------------------
  16. 0 Terminal default settings
  17. 1 highlighting
  18. 4 using underscores
  19. 5 Flashing
  20. 7 Anti-white display
  21. 8 Not visible
  22. Example:
  23. \033[1; 31; 40m <!--1-Highlight 31-foreground color red 40-background black--
  24. \033[0m <!--with terminal default setting, that is, color setting is deselected-
    1. \33[0m Close all properties
    2. \33[1m set high brightness
    3. \33[4m underline
    4. \33[5m blinking
    5. \33[7m reverse display
    6. \33[8m blanking
    7. \33[30m--\33[37m set foreground color
    8. \33[40m--\33[47m Set background color
    9. \33[na the cursor to move up n rows
    10. \33[NB cursor down n rows
    11. \33[NC cursor right shifts n rows
    12. \33[nd cursor moves left n rows
    13. \33[y;xh Setting the cursor position
    14. \33[2J Clear Screen
    15. \33[k clears the contents from the cursor to the end of the line
    16. \33[s Save cursor position
    17. \33[u restore cursor position
    18. \33[? 25l Hidden cursor
    19. \33[? 25h Display cursor

Eggen, Python font color and background color!

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.