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: <4356EE19.2CCD949D@dessent.net> Date: Wed, 19 Oct 2005 18:08:41 -0700 From: Brian Dessent 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com 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 -- 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/