Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <4357422B.7010507@student.lu.se> Date: Thu, 20 Oct 2005 09:07:23 +0200 From: Lennart Borgman User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: exiting vim changes background colour of console References: <88ACCA0E0A7A914DAFBA3918021605D24E3FD4 AT WPEXCH08 DOT colesmyer DOT ad DOT cmltd DOT net DOT au> <4356E9C2 DOT 3070604 AT student DOT lu DOT se> <4356EE19 DOT 2CCD949D AT dessent DOT net> In-Reply-To: <4356EE19.2CCD949D@dessent.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 sequences. If you include "\w >" inside them you will >really muck up your prompt if you type a command wider than one screen. > >PS1="\[\033[32;47m\]\w >\[\033[0m\]" > >Brian > > 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 command any more. Is there something I can do about this? Kind regards, Lennart -- 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/