问题:将影响单词“expression”的粗体更改为Less中的黄色: alt text http://files.getdropbox.com/u/175564/man-bolding-highlight.png
我的命令影响较less
export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking export LESS_TERMCAP_md=$'\E[01;31m' # begin bold export LESS_TERMCAP_me=$'\E[0m' # end mode export LESS_TERMCAP_se=$'\E[0m' # end standout-mode export LESS_TERMCAP_so=$'\E[01;44;33m' # begin standout-mode export LESS_TERMCAP_ue=$'\E[0m' # end underline export LESS_TERMCAP_us=$'\E[01;32m' # begin underline
你怎么能把粗体改成黄色?
我在debian / lenny上的manpage有不同的内容,但我想你正在寻找LESS_TERMCAP_us。 试试这个:
export LESS_TERMCAP_us=$'\E[01;33m' # begin underline is now yellow
ThornstenS回答后的结果
替代文字http://files.getdropbox.com/u/175564/man-link.png
我的代码为Less
export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking export LESS_TERMCAP_md=$'\E[01;38;5;74m' # bold in blue export LESS_TERMCAP_me=$'\E[0m' # end mode export LESS_TERMCAP_se=$'\E[0m' # end standout-mode export LESS_TERMCAP_so=$'\E[38;5;246m' # begin standout-mode - info box export LESS_TERMCAP_ue=$'\E[0m' # end underline export LESS_TERMCAP_us=$'\E[04;33;146m' # begin underline is now yellow # | | | # | |----------------- yellow # |-------------------- underline
现在阅读文档更容易:)
谢谢ThorntenS!