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:date:from:reply-to:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=LEs5Z+RIJkb3frAy ZuCd5BJ8oatDrAUaEILGrjTj9gWc/3lnurBm+Kl9Ku0wZaG2Snv5sGBkCN/jPn7T lSUn43T/Xd1ctvnXyxiTOQ4LaGOX1TEDe5V285boFMvpljsxTvoJRTedCZLubLpJ XsGYf16cAj/XqLWGqk1oJTG4g6g= 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:date:from:reply-to:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=default; bh=hXpGQL5eCZxieGuK230UXk dTxX8=; b=XbHVF5HR9cuNWwueZDcYyVIZBO6SETpGF52zjxFQkTJTEpwW/8vNqq 824kRM3MiG5LoGslpOUiP1gXvicRijDn3R4FeP9B5p4d9cwz2KL7lAYIk0iiwQts ILApd8++Syiof+zdGA36uAmhuBA6irA0kQuz6uopMn8UJa8i2ssQk= 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=-2.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-HELO: out1-smtp.messagingengine.com Message-ID: <55420ADE.8000609@dronecode.org.uk> Date: Thu, 30 Apr 2015 11:58:38 +0100 From: Jon TURNEY Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: AC , cygwin AT cygwin DOT com Subject: Re: Terminal window hostname always showing References: <553B4F0B DOT 4080002 AT acarver DOT net> In-Reply-To: <553B4F0B.4080002@acarver.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 25/04/2015 09:23, AC wrote: > Is it possible to turn off the automatic hostname that the window > manager is adding to terminal windows? Yes, use the X server option -nohostintitle. > Right now, on any machine I log into, they all use escape sequences to > set the title of the window. However, the window manager (not sure > which I have, looks like xorg-server) on the Cygwin system is adding a > hostname to the title. > > I'm using the bash escape sequence "\u@\h: \w" which is supposed to give > me the user and the short name of the host (minus the domain) and the > path. However, all my terminals on the Cygwin system end up like this: > > user AT host: ~ @host.example.com Thanks for pointing out this issue. > If I change the escape sequence on the remote machine to use the full > hostname, the result on the Cygwin system is: > > user AT host DOT example DOT com: ~ > > It seems to me that the window manager is interpreting the data in the > escape sequence and opting to put a hostname on the title if it can't > find one that matches the connection. Almost. When -hostintitle is enabled, the WM adds the contents of WM_CLIENT_MACHINE to the window title, unless it already seems to be there. I've tried to tweak this heuristic a bit in X server 1.17.1-3 so that if WM_CLIENT_MACHINE contains something that looks like a FQDN, it only looks for the hostname part, not the whole thing. -- Jon TURNEY Volunteer Cygwin/X X Server maintainer -- 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