X-Recipient: archive-cygwin@delorie.com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <4A82EB12.2040206@bopp.net> References: <20090812155808.311470@gmx.net> <4A82EB12.2040206@bopp.net> Date: Wed, 12 Aug 2009 12:21:11 -0400 Message-ID: Subject: Re: Issue with the titlebar From: "Mark J. Reed" To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.com 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. A better option is to define PROMPT_COMMAND to echo the appropriate sequence. -- Mark J. Reed -- 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