vim 显示颜色脚本 echo TERM=xterm >>/root/.bash_profile echo export TERM >>/root/.bash_profile source /root/.bash_profile yum install vim-common vim-enhanced vim-minimal -y [root@mail test]# vi /etc/vimrc syntax on set hlsearch set nu set tabstop=4
编写shell脚本的时候.通过改变shell的显示颜色,不但可以改变使用shell终端的体验,并且更为有用的是,可以通过改变显示内容的颜色来区分正常输出.warning和error等不同关注级别的输出内容. 1.转义序列(Escape sequence) An escape sequence is a series of characters used to change the state of computers and their attached peripheral devices.