终端仿真器中的颜色主题很奇怪/不正确 [英] Color themes are strange/incorrect in terminal emulator

查看:110
本文介绍了终端仿真器中的颜色主题很奇怪/不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Konsole(从kde)模拟器中运行emacs-nox 23.3,最色彩的主题有奇怪的颜色。



例如,我喜欢 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆