X-Spam-Check-By: sourceware.org Date: Mon, 23 Jan 2006 14:25:51 -0500 (EST) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: Eric Blake cc: cygwin AT cygwin DOT com, Zach Gelnett Subject: Re: Prompt issue within cygwin In-Reply-To: <012320061839.4104.43D522D5000C41690000100822073007930A050E040D0C079D0A@comcast.net> Message-ID: References: <012320061839 DOT 4104 DOT 43D522D5000C41690000100822073007930A050E040D0C079D0A AT comcast DOT net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Mon, 23 Jan 2006, Eric Blake wrote: > > > \[\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. Ouch. That's what I get for firing off emails in a hurry. I meant "ESC]61;" (which I'm glad you share my confusion about). > In the standard bash prompt from the base-files package, the > sequence: "\[\e]0;\w\a\]" sets up part of the bash prompt > "\[\]", with a message to the terminal to > change its title "\e]0;\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. 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/