This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Prompt issue within cygwin
- From: Igor Peshansky <pechtcha at cs dot nyu dot edu>
- To: Zach Gelnett <zachg99 at gmail dot com>
- Cc: cygwin at cygwin dot com
- Date: Mon, 23 Jan 2006 11:44:37 -0500 (EST)
- Subject: Re: Prompt issue within cygwin
- References: <f894c8ac0601230831n33d75defj8456f73bb341f46c@mail.gmail.com>
- Reply-to: cygwin at cygwin dot com
On Mon, 23 Jan 2006, Zach Gelnett wrote:
> Here is what i am seeing:
>
> v468929@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
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu | igor@watson.ibm.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/