Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

GNU Screen gives my bash prompt nice colors, though the dark blue is hard to read on a black background. I can change the ls colors using /etc/DIR_COLORS but the bash prompt in screen doesn't get affected by this.

Is there any way I can modify the colors used by screen?

share|improve this question

migrated from Mar 4 '12 at 20:27

This question came from our site for professional and enthusiast programmers.

I don't see how this relates to screen - you should get the same colors in an ordinary bash, don't you? – Paŭlo Ebermann Mar 4 '12 at 14:42
Certain terminal software has awkward default colors, and that may include a too-dark blue. Consider utilizing the color values from the CGA set to get good results. – jørgensen Mar 4 '12 at 15:38
up vote 2 down vote accepted

You could change the colors of the prompt from your bashrc. Mine is configured thus:

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\     [\033[01;34m\]\w\[\033[00m\]\$ '
    PS1='${debian_chroot:+($debian_chroot)}\[\e[1;34m\]\u \[\e[4;33m\]/-\\\[\e[0m\] \ [\e[1;32m\]-> \w\[\e[0m\]: ' 
unset color_prompt force_color_prompt

More can be found here.

Hope this comes in Handy

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .