delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/09/19/10:22:29

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Robert Praetorius" <RPraetorius AT AspenRes DOT Com>
Organization: Ministry of Hobo Regalia, Gauntlet Division
To: Chris Abbey <cabbey AT bresnanlink DOT net>
Date: Wed, 20 Sep 2000 00:08:45 +1000
MIME-Version: 1.0
Subject: Re: odd bash wrapping due to ansi codes
Reply-to: RPraetorius AT AspenRes DOT Com
CC: cygwin AT sourceware DOT cygnus DOT com
Message-ID: <39C8000D.9495.1D41E706@localhost>
In-reply-to: <4.3.2.7.0.20000917030431.00bd6a10@pop>
X-mailer: Pegasus Mail for Win32 (v3.12c)

> '<0x1b>]0;\w<0x07><0x1b>[1m<0x1b>[34m\w<0x1b>[0m $ '

     I've found that bash is happier when I wrap ANSI (or ANSIesque) 
escape and control sequences inside \[ . . . \].  To quote from the 
bash man page:

          \[   begin a sequence of non-printing characters, which
               could be used to embed a terminal control sequence
               into the prompt
          \]   end a sequence of non-printing characters


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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