X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:content-type; q=dns; s=default; b=oZ
	5trtCu+GPkZ1fBPi1u71GQy2NqTYI/P5XfV+6smJXU2r0QpsOjwLseWItkQl2nSM
	L3szOmRHXLz4vdiUJbdKP5qGYskgWXQXAqsaCJMo49cuGMC11OgQWBJDabOv2yD0
	wAG+sZs3wi6zBjLcjzZLMjffQ59xWF4TLW695g6J8=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:content-type; s=default; bh=au6kXInu
	wxh1QXUl7pZdIQHcUD0=; b=hbo88XNVjClFwJ+EdkDl0LCBLrG2LGW9dkrUCz6g
	PnB3mwsP4ccRNGHx41qQ29W1ItsjDtiWwu/d8dpf+wFeKZ6vpBa2kNitP8gW48s4
	vniNhu1a6EszLjtXVPhKqegfmOeWLJjXZ4sORN/MFMuHGGzLUKVjzMU6AtW61C5i
	jHs=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_40,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-lb0-f174.google.com
MIME-Version: 1.0
X-Received: by 10.152.234.229 with SMTP id uh5mr221873lac.64.1397499578795; Mon, 14 Apr 2014 11:19:38 -0700 (PDT)
In-Reply-To: <20140411200040.GA28630@tastycake.net>
References: <53483EC3.6010707@biostat.ucsf.edu>	<20140411200040.GA28630@tastycake.net>
Date: Mon, 14 Apr 2014 14:19:38 -0400
Message-ID: <CAEotdw=3DkXiJAcdLc5KZjdvUAqn_xYaVcB2RUmLq1tnwBP74w@mail.gmail.com>
Subject: Re: setting cygwin terminal (mintty) title from a very remote system
From: David Conrad <DavidConrad@acm.org>
To: Andrey Repin <cygwin@cygwin.com>
Content-Type: text/plain; charset=UTF-8
X-IsSubscribed: yes

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

