LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 680|回复: 2

关于echo的问题

[复制链接]
发表于 2003-11-29 12:28:54 | 显示全部楼层 |阅读模式
redhat9.0中/etc/sysconfig/init脚本中:


# color => new RH6.0 bootup
# verbose => old-style bootup
# anything else => new style bootup without ANSI colors or positioning
BOOTUP=color
# column to start "[  OK  ]" label in
RES_COL=60
# terminal sequence to move to that column. You could change this
# to something like "tput hpa ${RES_COL}" if your terminal supports it
MOVE_TO_COL="echo -en \\033[${RES_COL}G"
# terminal sequence to set color to a 'success' color (currently: green)
SETCOLOR_SUCCESS="echo -en \\033[0;32m"
# terminal sequence to set color to a 'failure' color (currently: red)
SETCOLOR_FAILURE="echo -en \\033[0;31m"
# terminal sequence to set color to a 'warning' color (currently: yellow)
SETCOLOR_WARNING="echo -en \\033[0;33m"
# terminal sequence to reset to the default color.
SETCOLOR_NORMAL="echo -en \\033[0;39m"
# default kernel loglevel on boot (syslog will reset this)
LOGLEVEL=3
# Set to anything other than 'no' to allow hotkey interactive startup...
PROMPT=yes

请问这里的echo做了什么,\\033[0;32m 是什么意思呀  斑竹能详细解释一下吗?谢谢!
发表于 2003-11-29 12:36:29 | 显示全部楼层
那是设定显示字符的颜色~~
请看一下关于提示行而贴子:
http://www.linuxsir.cn/bbs/showthread.php?threadid=20558
 楼主| 发表于 2003-11-29 12:41:01 | 显示全部楼层

RE:关于echo的问题

多谢斑竹! :)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表