shell中字体变色
2015-11-19 13:55
656 查看
在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
字体颜色代码:重置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
相关文章推荐
- bash: useradd: command not found
- 【算法】希尔排序
- Linux Shell编程入门
- Bash Shell注释
- shell脚本学习(一)
- shell安装LAMP环境
- xshell 常用的使用方法
- shell if [ -d filename]
- shell基本命令:使用命令行不全和通配符
- busybox里的init
- Deep Learning in a Nutshell: Core Concepts
- shell调试
- Hadoop2.x HDFS Shell命令
- shell脚本:lvs启动简易脚本
- shell中的各种括号的使用方法
- shell入门-awk-1
- linux shellScripts-1
- linux shellScripts-2
- linux shellScripts-3
- SSH Secure Shell Client 连接虚拟机中的centos 6.5【Win】