This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: changing cygwin's console window title
- From: Thomas Wolff <towo at towo dot net>
- To: cygwin at cygwin dot com
- Date: Fri, 08 Jan 2010 11:45:49 +0100
- Subject: Re: changing cygwin's console window title
- References: <205934.59166.qm@web32007.mail.mud.yahoo.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