Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <4357422B.7010507@student.lu.se>
Date: Thu, 20 Oct 2005 09:07:23 +0200
From: Lennart Borgman <lennart.borgman.073@student.lu.se>
User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: exiting vim changes background colour of console
References: <88ACCA0E0A7A914DAFBA3918021605D24E3FD4@WPEXCH08.colesmyer.ad.cmltd.net.au> <Pine.GSO.4.63.0510192020400.16245@slinky.cs.nyu.edu> <4356E9C2.3070604@student.lu.se> <4356EE19.2CCD949D@dessent.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/

