我在许多bash配置文件中找到了这些设置,我不知道它们是什么意思或者做什么。有人能解释一下吗?谢谢!
# Terminal colors
NM="\[\033[0;38m\]" #means no background and white lines
HI="\[\033[0;37m\]" #change this for letter colors
HII="\[\033[0;31m\]" #change this for letter colors
SI="\[\033[0;33m\]" #this is for the current directory
IN="\[\033[0m\]"发布于 2014-02-18 21:28:55
这些是给你的gnome终端着色的语法。
例如,第一个,
NM="\[\033[0;38m\]" #means no background and white lines这里,
NM是一个变量\[\033[和m\]是一个转义序列,用来表示中间的文本是一个颜色代码。0;38没有表示背景和白线(如注释中提到的)https://askubuntu.com/questions/422807
复制相似问题