delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/01/08/05:46:08

X-Recipient: archive-cygwin AT delorie DOT 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 AT towo DOT net>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: changing cygwin's console window title
References: <205934 DOT 59166 DOT qm AT web32007 DOT mail DOT mud DOT yahoo DOT com>
In-Reply-To: <205934.59166.qm@web32007.mail.mud.yahoo.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

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

- Raw text -


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