在linux中给字体使用数字代码变色                                        

 

  • 字体颜色代码:重置0 ,黑色30红色31绿色32黄色33蓝色34洋红35青色36浅灰37
  • 效果代码:1m加粗  2m加下划线  5m闪动效果  7m加背景色

应用示例:

  • echo -e "\e[31m the is test \e[0m"  或  echo -e "\033[33m the is test \033[0m"
     the is test
  • echo -e "\e[1;31m the is test \e[0m" 或 echo -e "\033[33;1m the is test  \033[0m" (加粗模式)
    the is test

相关文章:

  • 2021-11-06
  • 2021-09-20
  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
  • 2022-02-19
猜你喜欢
  • 2022-02-19
  • 2021-08-18
  • 2022-02-27
  • 2022-02-19
  • 2021-08-12
  • 2021-12-22
  • 2021-12-22
相关资源
相似解决方案