X-Spam-Check-By: sourceware.org
Message-ID: <f894c8ac0601231450m679d19b2u7a01097d0bcd037b@mail.gmail.com>
Date: Mon, 23 Jan 2006 16:50:51 -0600
From: Zach Gelnett <zachg99@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Prompt issue within cygwin
In-Reply-To: <f894c8ac0601231138m61563d4ap5b88aa41cf247924@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
References: <f894c8ac0601230831n33d75defj8456f73bb341f46c@mail.gmail.com> 	 <Pine.GSO.4.63.0601231138410.18707@access1.cims.nyu.edu> 	 <f894c8ac0601230853v12812aaco8e92f875a717fac@mail.gmail.com> 	 <Pine.GSO.4.63.0601231154210.18707@access1.cims.nyu.edu> 	 <f894c8ac0601231035j6703639h91ce8ea08bcb0ea9@mail.gmail.com> 	 <Pine.GSO.4.63.0601231426390.27934@access1.cims.nyu.edu> 	 <f894c8ac0601231138m61563d4ap5b88aa41cf247924@mail.gmail.com>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k0NMox1m020668

On 1/23/06, Zach Gelnett <zachg99@gmail.com> wrote:
> pls see:
>
> http://materm.sourceforge.net/docs/settitle.c
>
> On 1/23/06, Igor Peshansky <pechtcha@cs.nyu.edu> wrote:
> > Ugh, top-posting...  Reformatted.
> >
> > Two more notes: first, the Cygwin lists don't accept HTML email, as you no
> > doubt found out from the rejection notice, and second, please make sure
> > your mailer respects the Reply-To: header -- I set it for a reason.
> >
> > On Mon, 23 Jan 2006, Zach Gelnett wrote:
> >
> > > On 1/23/06, Igor Peshansky <pechtcha@XX.XXX.XXX> wrote:
> >
> > Again, <http://cygwin.com/acronyms/#PCYMTNQREAIYR>.  Thanks.
> >
> > > > Ugh, top-posting...  Reformatted.
> > > >
> > > > On Mon, 23 Jan 2006, Zach Gelnett wrote:
> > > >
> > > > > On 1/23/06, Igor Peshansky <pechtcha@XX.XXX.XXX> wrote:
> > > >
> > > > <http://cygwin.com/acronyms/#PCYMTNQREAIYR>.  Thanks.
> > > >
> > > > > > 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]
> > > > > >
> > > > > > [snip]
> > > > > > Also, ESC] doesn't look like a valid ANSI escape sequence.  What
> > > > > > exactly are you trying to accomplish with your prompt?
> > > >
> > > > [snip]
> > > > 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.
> > >
> > > Those characters work with mrxvt to cause the tab name to have the
> > > appropriate user@host value.
> >
> > Ah.  Ok, that explains it.  Good to know.  Thanks.
> >         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"
> >
>


I do have one final question.

If I set PS1 like this:

 PS1="\[\033]61;\w\007\]\u@\h:\w\\$ "

Everything works great, no issues at all, what is expected is what is displayed.

Now, when i make only a slight modification as such:

PS1="\[\033]61;\u@\H\007\]\u@\h:\w\\$ "

all the sudden i have a duplicate space after my prompt as in:

v468929@TRD-CAX40JXD:~$  ls db2Mgr.

that goes away when i hit the tab complete button to show me my options:

v468929@TRD-CAX40JXD:~$  ls db2Mgr.
db2Mgr.C  db2Mgr.h
v468929@TRD-CAX40JXD:~$ ls db2Mgr.


I'm trying to get this prompt to work:

PS1="\[\033]61;\u@\H\007\]\u@\H \W>"

but the issue there is that the > is duplicated (just like the space
above, but much more noticable).  Any ideas as to why making the title
modification to use \u@\H instead of \w is causing these issues?

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


