Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Mar 4 '12 at 20:27

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

1  
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

1 Answer 1

up vote 2 down vote accepted

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

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

More can be found here.

Hope this comes in Handy

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.