delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/10/20/03:07:59

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: <4357422B.7010507@student.lu.se>
Date: Thu, 20 Oct 2005 09:07:23 +0200
From: Lennart Borgman <lennart DOT borgman DOT 073 AT student DOT lu DOT se>
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> <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> <4356EE19 DOT 2CCD949D AT dessent DOT net>
In-Reply-To: <4356EE19.2CCD949D@dessent.net>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019