delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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 <brian AT dessent DOT net> |
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> <Pine DOT GSO DOT 4 DOT 63 DOT 0510192020400 DOT 16245 AT slinky DOT cs DOT nyu DOT edu> <4356E9C2 DOT 3070604 AT student DOT lu DOT se> |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |