Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Color themes are strange/incorrect in terminal emulator

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
(source: ethanschoonover.com)

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.

like image 979
0xbadc0de Avatar asked Oct 23 '11 11:10

0xbadc0de


1 Answers

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.

like image 155
Bozhidar Batsov Avatar answered Oct 18 '22 15:10

Bozhidar Batsov