Question

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

Was it helpful?

Solution

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.

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top