当前位置:   article > 正文

C++在linux终端上设置颜色_linux c++ 如何将终端颜色修改关键字

linux c++ 如何将终端颜色修改关键字

Shell脚本输出带有颜色特效的字体 

  1. #define NONE "\033[m"
  2. #define RED "\033[0;32;31m"
  3. #define LIGHT_RED "\033[1;31m"
  4. #define GREEN "\033[0;32;32m"
  5. #define LIGHT_GREEN "\033[1;32m"
  6. #define BLUE "\033[0;32;34m"
  7. #define LIGHT_BLUE "\033[1;34m"
  8. #define DARY_GRAY "\033[1;30m"
  9. #define CYAN "\033[0;36m"
  10. #define LIGHT_CYAN "\033[1;36m"
  11. #define PURPLE "\033[0;35m"
  12. #define LIGHT_PURPLE "\033[1;35m"
  13. #define BROWN "\033[0;33m"
  14. #define YELLOW "\033[1;33m"
  15. #define LIGHT_GRAY "\033[0;37m"
  16. #define WHITE "\033[1;37m"
  17. #define SHINE "\033[5m"      //闪烁
  18. #define DASH "\033[9m"       // 中间一道横线
  19. #define QUICKSHINE "\033[6m" //快闪
  20. #define FANXIAN "\033[7m"    //反显
  21. #define XIAOYIN "\033[8m"    // 消隐,消失隐藏
  22. cout << FANXIAN << YELLOW << "----------begin----" << NONE << endl;
  23. cout << FANXIAN << YELLOW << "----------end----" << NONE << endl;

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/323931
推荐阅读
相关标签
  

闽ICP备14008679号