Mail Archives: cygwin/2005/10/19/19:33:33
Hi Igor,
<snip>
> > My PS1 variable is:
> > \e[47m\n\s\v User \u on host \h in dir \w\n\d \@>\e[0;30m
> >
> > bash2.05b User rbram on host cml035835 in dir /cygdrive/c/eTech/eForms2
> > Thu Oct 20 07:16 AM> echo $PS1
> > \e[47m\n\s\v User \u on host \h in dir \w\n\d \@>\e[0;30m
>
> Note that the end of your PS1 resets the color to "black background"...
> Removing that '\e[0;30m' should fix your problem, unless you want your
> window background to be something other than grey, in which case you'll
> have to put in a background change to whatever your window background is.
>
> FWIW, you might also want to put \[ and \] around the non-printable
> characters in PS1, to help bash calculate the prompt length better, e.g.,
>
> export PS1='\[\e[47m\]\n\s\v User \u on host \h in dir \w\n\d \@>'
Ok, here is part of my .bash_profile now:
blackOnLightGrey='\[\e[47m\]'
blue='\[\e[1;34m\]'
red='\[\e[1;31m\]'
blackOnWhite='\[\e[0;0;37;30m\]'
# export PS1="${blackOnLightGrey}\n\s\v User \u on host \h in dir \w\n\d \@> "
export PS1="${blackOnLightGrey}\n\s\v User \u on host \h in dir \w\n\d \@>\e[0m "
# export PS1="${blackOnLightGrey}\n\s\v User \u on host \h in dir \w\n\d \@>${blackOnWhite} "
None of the PS1s above fix the issue! I.e. when I open a console I see what I want: console with white background and black foreground, with the prompt rendered as black foreground on grey background, but then whenever I do a man, less, vim and exit, the screen get a black background that I can make go away by pressing "ENTER" repeatedly i.e. shifting the black off screen.
Kind regards,
Rob
:)
-------
Robert Mark Bram
Portal Analyst Programmer
eTechnology, Coles Myer Limited
robert DOT bram AT colesmyer DOT com DOT au
+61 3 9635 1036
This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -