nic*_*ick 11 gnome-terminal documentation manpage
当我切换到 tty 时,我注意到使用某些配色方案时联机帮助页看起来有所不同。如何使其进入 gnome 终端?
更新:这是我在 Unix stackExchange 站点上找到的解决方案。
And*_*dAC 10
我不知道,但我在这里找到了一些东西:http :
//www.tuxarena.com/2012/04/tutorial-colored-man-pages-how-it-works/
来自上述链接的说明:
编辑您的 .bashrc 文件并添加以下几行:
export LESS_TERMCAP_mb=$(printf '\e[01;31m') # enter blinking mode - red
export LESS_TERMCAP_md=$(printf '\e[01;35m') # enter double-bright mode - bold, magenta
export LESS_TERMCAP_me=$(printf '\e[0m') # turn off all appearance modes (mb, md, so, us)
export LESS_TERMCAP_se=$(printf '\e[0m') # leave standout mode
export LESS_TERMCAP_so=$(printf '\e[01;33m') # enter standout mode - yellow
export LESS_TERMCAP_ue=$(printf '\e[0m') # leave underline mode
export LESS_TERMCAP_us=$(printf '\e[04;36m') # enter underline mode - cyan
Run Code Online (Sandbox Code Playgroud)
接下来,启动一个新的终端会话或source ~./bashrc
在当前终端中输入命令。
您可以使用以下命令制作彩色手册页:
sudo apt-get install most
export PAGER="most"
Run Code Online (Sandbox Code Playgroud)
现在检查你的手册页
man ls
Run Code Online (Sandbox Code Playgroud)