delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/08/12/12:35:56

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Andrew DeFaria <Andrew AT DeFaria DOT com>
Subject: Re: Issue with the titlebar
Date: Wed, 12 Aug 2009 09:30:28 -0700
Lines: 22
Message-ID: <h5uqn7$2mn$2@ger.gmane.org>
References: <20090812155808 DOT 311470 AT gmx DOT net> <4A82EB12 DOT 2040206 AT bopp DOT net> <f60fe000908120921nd75630akcec54a3d20f1cf2 AT mail DOT gmail DOT com>
Mime-Version: 1.0
User-Agent: Thunderbird 2.0.0.22 (X11/20090608)
In-Reply-To: <f60fe000908120921nd75630akcec54a3d20f1cf2@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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


Mark J. Reed wrote:
> Putting title-setting escape sequences in PS1 has the unfortunate side
> effect that the shell thinks that it has output those characters, and
> shrinks the length of the line readline has to work with by that
> amount.
>   
It was my understanding that one of those escape sequences told the 
shell not to count these characters. In any event I have long since had 
a series of functions that appropriately set my title bar with 
information about the Clearcase view I'm in (or CVS repository) and path 
and maintain that path so my prompt prompt is not ungodly long. As an 
admin I'm often on many different machines and I color code my terminals 
as well as use a standard prompt of only the machine name and a colon in 
a different color.
> A better option is to define PROMPT_COMMAND to echo the appropriate sequence.
>   
What's PROMPT_COMMAND?
-- 
Andrew DeFaria <http://defaria.com>
As a computer, I find your faith in technology amusing.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019