tags:

views:

1535

answers:

2

When I use "[\e[34m]sometext" i get sometext in blue, but can I specify the shade of blue somewhere?

+1  A: 

You're using an ANSI escape sequence, which has very limited color options. I use an .Xdefaults file (explained in this tutorial). These options won't make your shell prompt all colorful, but is used by editors such as vim.

Be aware that .Xdefaults can be picky about UNIX (CR) vs Windows (CRLF) line endings. Use d2u or u2d to switch line endings as necessary.

+3  A: 

If your rxvt has 256 colors enabled, you can use extended color codes (e.g. "^[[38;5;36m"). Try this script to test if your terminal has 256 colors enabled. Probably you need to patch/recompile it or download another version. I recommend this tutorial.

jkramer
Sweet +1 for that
jim