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 Subject: Re: Issue with the titlebar Date: Wed, 12 Aug 2009 09:30:28 -0700 Lines: 22 Message-ID: References: <20090812155808 DOT 311470 AT gmx DOT net> <4A82EB12 DOT 2040206 AT bopp DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Thunderbird 2.0.0.22 (X11/20090608) In-Reply-To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: 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 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 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