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:message-id:subject:from:to:cc:date:in-reply-to :references:content-type:mime-version:content-transfer-encoding; q=dns; s=default; b=ke2l++nxkEYYu9kHyA0Z4S9dBglw+i5tYN2IDvZ0jyn 8i43+ToEECdq2r3DtTonZGvGDreMa65jyz8yfdlpF+yHUpwWVLtxjsP0lz7nnkiB bITba2F2F/E62kgDAHlArNfOWnvx//Me+ieJJwfQ17p8BYK3jtPH1iDhNpvzZ1u0 = 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:message-id:subject:from:to:cc:date:in-reply-to :references:content-type:mime-version:content-transfer-encoding; s=default; bh=VP2CBPoeRg/mquiquMxmTKuSTAA=; b=NMFucVXzZgwvGPxij HrSCsU8h1wxAH6ZGVi8b/7phSKxhbdt/J1hpaZGEHyFzOTQe/nopkLlrTjVfDVEB TRI/Bl8cv2k12rSmPzpsokeULcGdnOlDYHbv07KhqFAdpPBtR1DiOtiPeZEkYnu4 jy3YnXgII9VkjGAGEYcOrDxGKM= 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=1.6 required=5.0 tests=AWL,BAYES_20,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: biostat.ucsf.edu Message-ID: <1397521228.1612.34.camel@localhost> Subject: Re: setting cygwin terminal (mintty) title from a very remote system From: Ross Boylan To: David Conrad Cc: Andrey Repin Date: Mon, 14 Apr 2014 17:20:28 -0700 In-Reply-To: References: <53483EC3 DOT 6010707 AT biostat DOT ucsf DOT edu> <20140411200040 DOT GA28630 AT tastycake DOT net> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On Mon, 2014-04-14 at 14:19 -0400, David Conrad wrote: > 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 agree, but I'm quite sure that's not my problem. I only have the problem inside emacs (usually inside screen, but it doesn't seem to matter). The title I'm seeing is from a different system, earlier in the ssh chain. I tried it (using ], not [) and it didn't work; instead some characters appeared in the emacs window. I also checked PS1 and COMMAND_PROMPT; neither was generating any special characters. Setting COMMAND_PROMPT to the echo command simply puts the characters in front of the command line. Ross > > 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 > -- 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