【问题标题】:How to get 256 colors in GUI Emacs 24 in terminal buffer?如何在终端缓冲区中的 GUI Emacs 24 中获得 256 种颜色?
【发布时间】:2014-04-14 04:52:30
【问题描述】:

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

GUI Emacs 本身运行良好。我可以使用任何我想要的颜色主题。但是,当我使用 termansi-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 上的终端缓冲区中工作?

【问题讨论】:

    标签: emacs colors


    【解决方案1】:

    你没有错过任何东西,也没有办法离开你所在的位置:termansi-term support 256 colors 都没有。

    【讨论】:

    • @Monomo 对不起。我很想给你一个更肯定的答案,但我担心你在这种情况下真的不走运。
    猜你喜欢
    • 2010-09-09
    • 1970-01-01
    • 1970-01-01
    • 2010-09-15
    • 2012-09-14
    • 1970-01-01
    • 2014-10-27
    • 2013-01-18
    • 1970-01-01
    相关资源
    最近更新 更多