delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/23/11:58:29

X-Spam-Check-By: sourceware.org
Date: Mon, 23 Jan 2006 11:58:19 -0500 (EST)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Zach Gelnett <zachg99 AT gmail DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Prompt issue within cygwin
In-Reply-To: <f894c8ac0601230853v12812aaco8e92f875a717fac@mail.gmail.com>
Message-ID: <Pine.GSO.4.63.0601231154210.18707@access1.cims.nyu.edu>
References: <f894c8ac0601230831n33d75defj8456f73bb341f46c AT mail DOT gmail DOT com> <Pine DOT GSO DOT 4 DOT 63 DOT 0601231138410 DOT 18707 AT access1 DOT cims DOT nyu DOT edu> <f894c8ac0601230853v12812aaco8e92f875a717fac AT mail DOT gmail DOT com>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

Ugh, top-posting...  Reformatted.

On Mon, 23 Jan 2006, Zach Gelnett wrote:

> On 1/23/06, Igor Peshansky <pechtcha AT XX DOT XXX DOT XXX> wrote:

<http://cygwin.com/acronyms/#PCYMTNQREAIYR>.  Thanks.

> > On Mon, 23 Jan 2006, Zach Gelnett wrote:
> >
> > > Here is what i am seeing:
> > >
> > > v468929 AT TRD-CAX40JXD ~> >
> > >
> > > the duplicate ">" is the issue.  Here is my PS1:
> > >
> > > \[\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?
> >         Igor
>
> That was precicesly my issue.  Thank you very much, both issues (tab
> complete and dup > entries) are resolved!
>
> FYI, I'm just trying to have a prompt that says:
>
> username AT hostname workingdir>
>
> this is because i login to multiple machines and use tabbed windows
> (available within mrxvt) to do this.  i find having this prompt makes it
> quite easy to keep track of what env i'm logged into and where i'm at.

If that was all you wanted, you could have set PS1 to '\u@\H \W>'.  Your
prompt tries to do more than that.  I'm still unsure of what the initial
sequence of non-printing characters in your prompt is for.

BTW, forgot to mention: none of this is Cygwin-specific.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

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