首页 > 系统服务 > 详细

shell中字体变色

时间:2015-11-19 14:46:37      阅读:222      评论:0      收藏:0      [点我收藏+]

                                  在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

shell中字体变色

原文:http://www.cnblogs.com/tangshengwei/p/4977440.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!