X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 	tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4B470CDD.5020000@towo.net>
Date: Fri, 08 Jan 2010 11:45:49 +0100
From: Thomas Wolff <towo@towo.net>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: changing cygwin's console window title
References: <205934.59166.qm@web32007.mail.mud.yahoo.com>
In-Reply-To: <205934.59166.qm@web32007.mail.mud.yahoo.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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

Collin Monahan wrote:
> I noticed Lynx kept changing my window title. According to the source code it was a call to SetConsoleTitle, part of the Windows API. ...
> Then I created a version of the program to compile under GCC. ...
> These may not be appropriate to use with an xterm window.
>   

Indeed. I'd recommend to use the escape sequence (as used by the other 
responder in .bashrc) also from a program so it'll work in xterm and 
mintty, too.
ESC]2;title^G
In cygwin console and mintty, you can use UTF-8 text (or whatever 
charset your terminal runs in) in the title string of this control 
sequence. With xterm, non-ASCII title handling is more tricky and 
depends on proper configuration.

Thomas

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

