Re: exiting vim changes background colour of console

2005-10-20 Thread Brian Dessent
Lennart Borgman wrote: > Thanks very much this! However I still have problem with long commands. > I start Cygwin with > > ** cygwin.cmd: > @echo off > set chere_invoking=1 > D:\cygwin\bin\bash --login -i > > When the command wraps into the next line then I can not edit the

Re: exiting vim changes background colour of console

2005-10-20 Thread Lennart Borgman
Brian Dessent wrote: Lennart Borgman wrote: I do not remember anything about this now, but comparing to my current PS1 I can see that I has a \] after the last m. I have PS1=\[\033[32;47m\w >\033[0m\] That's incorrect. The \[ and \] are to be used only to delineate nonprinting s

Re: exiting vim changes background colour of console

2005-10-19 Thread Brian Dessent
Lennart Borgman wrote: > I do not remember anything about this now, but comparing to my current > PS1 I can see that I has a \] after the last m. I have > > PS1=\[\033[32;47m\w >\033[0m\] That's incorrect. The \[ and \] are to be used only to delineate nonprinting sequences. If you include

Re: exiting vim changes background colour of console

2005-10-19 Thread Lennart Borgman
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 \@

RE: exiting vim changes background colour of console

2005-10-19 Thread Igor Pechtchanski
On Thu, 20 Oct 2005, Robert Bram wrote: > Hi Igor, > > > > > 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 h

Re: exiting vim changes background colour of console

2005-10-19 Thread Brian Dessent
Robert Bram wrote: > 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

RE: exiting vim changes background colour of console

2005-10-19 Thread Robert Bram
Hi Igor, > > 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

RE: exiting vim changes background colour of console

2005-10-19 Thread Igor Pechtchanski
On Thu, 20 Oct 2005, Robert Bram wrote: > Hi Igor, > > > > > > > > == > > > > > > > I am finding that when I exit from vim, it turns my background > > > > > > > back into black (which is how I had it before I tried changing > > > > > > > it today). Is there a setting or something I have forgotten

RE: exiting vim changes background colour of console

2005-10-19 Thread Robert Bram
Hi Igor, > > > > > > == > > > > > > I am finding that when I exit from vim, it turns my background > > > > > > back into black (which is how I had it before I tried changing > > > > > > it today). Is there a setting or something I have forgotten to > > > > > > change? > > > > > > == > > > > > > A

RE: exiting vim changes background colour of console

2005-10-19 Thread Igor Pechtchanski
it was, but this is an ugly solution. What is the value of your PS1 variable? Does it, perhaps, contain the code at the end that resets the background? That was the only way I could reproduce the behavior you report on my machine. > -Original Message- > From: Igor Pechtchanski [m

Re: exiting vim changes background colour of console

2005-10-18 Thread Corinna Vinschen
On Oct 19 08:29, Robert Bram wrote: > > > > > I am finding that when I exit from vim, it turns my background > > > > > back into black (which is how I had it before I tried changing > > > > > it today). Is there a setting or something I have forgotten to > > > > > change? > > > > > == > > > > > Act

RE: exiting vim changes background colour of console

2005-10-18 Thread Robert Bram
y, I find that I can keep pressing ENTER and 'clear' the screen back to how it was, but this is an ugly solution. Kind regards, Rob :) --- Robert Mark Bram Portal Analyst Programmer eTechnology, Coles Myer Limited [EMAIL PROTECTED] +61 3 9635 1036 -Original Message- From: Igo

RE: exiting vim changes background colour of console

2005-10-18 Thread Igor Pechtchanski
On Tue, 18 Oct 2005, Robert Bram wrote: > Hi Corinna, > > > > == > > > I am finding that when I exit from vim, it turns my background > > > back into black (which is how I had it before I tried changing > > > it today). Is there a setting or something I have forgotten to > > > change? > > > == > >

RE: exiting vim changes background colour of console

2005-10-17 Thread Robert Bram
Hi Corinna, > > == > > I am finding that when I exit from vim, it turns my background > > back into black (which is how I had it before I tried changing > > it today). Is there a setting or something I have forgotten to > > change? > > == > > Actually this is happenning not just after vim.. but e

Re: exiting vim changes background colour of console

2005-10-17 Thread Corinna Vinschen
On Oct 17 14:26, Robert Bram wrote: > > == > I am finding that when I exit from vim, it turns my background back into > black (which is how I had it before I tried changing it today). Is there a > setting or something I have forgotten to change? > == > Actually this is happenning not just after

RE: exiting vim changes background colour of console

2005-10-16 Thread Robert Bram
; Subject: exiting vim changes background colour of console > > Hi All! > > I am finding that when I exit from vim, it turns my background back into > black (which is how I had it before I tried changing it today). Is there a > setting or something I have forgotten to change? >

exiting vim changes background colour of console

2005-10-16 Thread Robert Bram
Hi All! I am finding that when I exit from vim, it turns my background back into black (which is how I had it before I tried changing it today). Is there a setting or something I have forgotten to change? Kind regards, Rob :) --- Robert Mark Bram Portal Analyst Programmer eTechnology, Co