【发布时间】:2014-04-14 04:52:30
【问题描述】:
我通过brew install emacs --cocoa --srgb 在 Mac 上安装了 Emacs。
GUI Emacs 本身运行良好。我可以使用任何我想要的颜色主题。但是,当我使用 term 或 ansi-term 启动终端缓冲区并运行 tput colors 时,我只能得到 8 个。Trying to display all 256 ANSI colors 通过 bash script 得到基本的 8 种颜色。
如果我运行list-colors-display,我会得到basic 8 plus some theming colors,但不是256。
这是 Emacs 的 GUI 版本,它带来了自己的窗口,所以我认为它与终端没有任何关系。但是when I run the same script in Terminal 显示 ANSI 颜色,我得到了所有 256,而终端中的tput colors 给了我 256,所以我知道这不是脚本的问题。
我错过了什么吗?我可以从哪里获得 256 种颜色在 GUI Emacs 上的终端缓冲区中工作?
【问题讨论】: