Debian – Xterm with Solarized only showing dark background without font colors

debianx-resourcesxterm

I am trying to get the Solarized color scheme for xterm, but have not had much success with it. I am running Debian 6 and downloaded the Xresources to ~/.Xresources.

After loading the new settings with xrdb -load ~/.Xresources, I get a XTerm with the blueish background from the theme, but no font colors.
Xterm with solarized theme

The default xterm is capable of color, as you can see below:
default xterm with Debian

How do I get the colors from solarized to show?

Best Answer

Your terminal is being colored by the new theme, as you can see from the new background and foreground colors. However, to make ls use more colors than the default set of colors, you should create a dir_colors config file and let it be sourced from ~/.bashrc. This file contains color and filetype pairs that are used to differentiate between different file types and their corresponding color to display. The environment variable LS_COLORS should hold this data after sourcing and ls will use this to display filenames accordingly.

The color code sequences used in dir_colors are equivalent to the bash escape codes for displaying text in colors -- 1;31 will be bold red; 0;31 will be normal red. Also, remember that these colors are always relative to the ones defined in ~/.Xresources so the red color for instance, will correspond to XTerm*color1 and so on.

Related Question