X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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 DOT 6010707 AT biostat DOT ucsf DOT edu> <20140411200040 DOT GA28630 AT tastycake DOT net> Date: Mon, 14 Apr 2014 14:19:38 -0400 Message-ID: Subject: Re: setting cygwin terminal (mintty) title from a very remote system From: David Conrad To: Andrey Repin 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