如何在GUI Emacs 24在终端缓冲区中获得256色? [英] How to get 256 colors in GUI Emacs 24 in terminal buffer?
问题描述
我通过 brew install emacs --cocoa --srgb
在Mac上安装了Emacs。
I installed Emacs on a Mac via brew install emacs --cocoa --srgb
.
GUI Emacs本身运行正常。我可以使用任何我喜欢的颜色主题。但是,当我使用 term
或 ansi-term
启动终端缓冲区时,我运行 tput colors
,我只能得到8. 尝试通过以下方式显示所有256种ANSI颜色: bash 脚本让我只有基本的8种颜色。
GUI Emacs itself is running fine. I'm able to use any color theme I want with it. However, when I start a terminal buffer with either term
or ansi-term
, and I run tput colors
, I only get 8. Trying to display all 256 ANSI colors via a bash script gets me just the basic 8 colors.
如果我运行 list-colors-display
,我会得到基本8加上一些主题颜色,但不是256.
If I run list-colors-display
, I get the basic 8 plus some theming colors, but not 256.
这是Emacs的GUI版本,它提出了自己的窗口,所以我不认为它与终端有任何关系。但是,当我在终端中运行相同的脚本时,显示ANSI颜色,我会得到所有的256,而 tput colors
在Terminal给我256,所以我知道这不是脚本的问题。
This is the GUI version of Emacs, which brings up its own window, so I don't think it has anything to do with the Terminal. But when I run the same script in Terminal to display the ANSI colors, I do get all 256, and tput colors
in Terminal gives me 256, so I know it's not the script's problem.
我错过了什么?我在哪里可以从这里得到256种颜色工作在GUI Emacs的终端缓冲区?
Did I miss something? Where can I go from here to get 256 colors working in the terminal buffer on GUI Emacs?
推荐答案
并且没有办法从你在哪里: term
也不 ansi-term
支持256种颜色。
You did not miss anything, and there's no way to go from where you are: Neither term
nor ansi-term
support 256 colors.
这篇关于如何在GUI Emacs 24在终端缓冲区中获得256色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!