如何在终端缓冲区的GUI Emacs 24中获得256色?

时间:2014-04-14 04:52:31

标签: emacs colors

我通过brew install emacs --cocoa --srgb在Mac上安装了Emacs。

GUI Emacs本身运行正常。我可以使用任何我想要的颜色主题。但是,当我使用termansi-term启动终端缓冲区并运行tput colors时,我只能通过bash Trying to display all 256 ANSI colors得到8. 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,所以我知道它不是脚本的问题。

我错过了什么吗?在GUI Emacs的终端缓冲区中,我可以从哪里获得256种颜色?

1 个答案:

答案 0 :(得分:1)

你没有错过任何东西,而且你无处可去:termansi-term support 256 colors