This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: setting cygwin terminal (mintty) title from a very remote system
- From: David Conrad <DavidConrad at acm dot org>
- To: Andrey Repin <cygwin at cygwin dot com>
- Date: Mon, 14 Apr 2014 14:19:38 -0400
- Subject: Re: setting cygwin terminal (mintty) title from a very remote system
- Authentication-results: sourceware.org; auth=none
- References: <53483EC3 dot 6010707 at biostat dot ucsf dot edu> <20140411200040 dot GA28630 at tastycake dot net>
On Fri, Apr 11, 2014 at 4:00 PM, Adam Dinwoodie wrote:
> On Fri, Apr 11, 2014 at 12:13:07PM -0700, Ross Boylan wrote:
>>
>> echo -ne '\e]0;Title\a'
>>
>
> [The] title will stay the same if something intercepts that sequence, and it
> will probably appear to stay the same if something resets it immediately
> (many Bash shell prompts do just that).
>
The fact that something else might reset it *immediately after* you
set it is really important. It can make it look like something you are
trying doesn't work **when it actually does work**.
I would suggest using a command like this to test setting it:
echo -ne "\e[0;This is a test\a"; sleep 5
That way, the title, if it's getting set at all, will remain set for a
few seconds before it gets reset, so you can see it. That will allow
you to tell the difference between a problem where the escape sequence
is never reaching mintty because something is eating it, and one where
the escape sequence is getting through just fine, but something, like
the bash PS1 prompt, is immediately overwriting it.
Good luck.
--
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