delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/23/13:39:35

X-Spam-Check-By: sourceware.org
From: ericblake AT comcast DOT net (Eric Blake)
To: cygwin AT cygwin DOT com, Zach Gelnett <zachg99 AT gmail DOT com>
Subject: Re: Prompt issue within cygwin
Date: Mon, 23 Jan 2006 18:39:17 +0000
Message-Id: <012320061839.4104.43D522D5000C41690000100822073007930A050E040D0C079D0A@comcast.net>
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

> >
> > \[\033]61;\u@\H\007\u@\H \W>
> >
> > as you can see, only a single ">"
> > [snip]
> 
> You have a bug in your PS1 value.  Bash uses \[ and \] to delimit
> non-printable sequences in the prompt.  So, your PS1 should at least be
> 
> \[\033]61;\u@\H\007\]\u@\H \W>
>                    ^^
> Note the closing '\]'.
> 
> Also, ESC] doesn't look like a valid ANSI escape sequence What exactly are
> you trying to accomplish with your prompt?

ESC] starts a sequence for sending a message to the terminal.
In the standard bash prompt from the base-files package, the
sequence: "\[\e]0;\w\a\]" sets up part of the bash prompt
"\[<non-printing chars>\]", with a message to the terminal to
change its title "\e]0;<text>\a" to the working directory "\w".
I have no idea what "\e]61;" in the OP's prompt is trying
to tell the terminal to do, though; I've only ever seen \e]n; for
n=0, 1, or 2, never for n=61.

--
Eric Blake
volunteer cygwin bash maintainer

--
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