我的Emacs安装有完整的颜色支持(list-colors-display显示)。但是,Emacs *shell*似乎只能处理基本的8 ANSI颜色转义。我在我的.emacs中通过以下方式处理了这些问题:
(autoload 'ansi-color-for-comint-mode-on "ansi-color" nil t)
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)有没有办法增加*shell*支持的颜色数量?
发布于 2011-07-19 09:12:09
如果我读对了,设置ansi标志/设置将只允许8种颜色,去掉它们并替换为这个设置tty-color-mode 256
发自:
http://www.gnu.org/software/emacs/elisp/html_node/Font-and-Color-Parameters.html
http://www.gnu.org/software/libtool/manual/emacs/Colors.html
https://stackoverflow.com/questions/6741014
复制相似问题