终端仿真器中的颜色主题很奇怪/不正确 [英] Color themes are strange/incorrect in terminal emulator
问题描述
例如,我喜欢 Solarized Theme 。我希望主题应该如下所示:
太阳主题http://ethanschoonover.com/solarized/img/screen-ruby-dark.png
然而,这是我所得到的:
Broken太阳能主题http://img824.imageshack.us/img824/3881/voronoi2.png
大多数emacs-color-theme包中的主题有类似的行为。我尝试更改Konsole颜色设置 - 没有结果。我也试图用这一个替换我的.Xresources。没有成功。
您的终端中需要256种颜色的大多数颜色主题才能体面。尝试将其添加到.bashrc(或.zshrc)中:
TERM = xterm-256color
在您提供设置(源.bashrc
)后,再次启动emacs希望这些主题会更好看。
I'm running emacs-nox 23.3 in Konsole (from kde) emulator, the most color themes have strange colors.
For example, i like the Solarized Theme. I expect the theme should look like this:
Solarized Theme http://ethanschoonover.com/solarized/img/screen-ruby-dark.png
However, this is what I get:
Broken Solarized Theme http://img824.imageshack.us/img824/3881/voronoi2.png
Most of themes that comes in emacs-color-theme package have similar behavior. I tried to change the Konsole color settings - no result. I also tried to replace my .Xresources with this one, with no success.
You need 256 colors in your terminal for most color themes to have decent appearance. Try adding this to your .bashrc (or .zshrc):
TERM=xterm-256color
After you've sourced the setting (source .bashrc
), start again emacs and hopefully the themes will be looking much better.
这篇关于终端仿真器中的颜色主题很奇怪/不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!