From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3322 invoked by alias); 30 Apr 2015 10:58:45 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 3311 invoked by uid 89); 30 Apr 2015 10:58:44 -0000 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 Received: from out1-smtp.messagingengine.com (HELO out1-smtp.messagingengine.com) (66.111.4.25) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 30 Apr 2015 10:58:43 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id A5B0020AB6 for ; Thu, 30 Apr 2015 06:58:41 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Thu, 30 Apr 2015 06:58:41 -0400 Received: from [192.168.1.102] (unknown [86.141.129.242]) by mail.messagingengine.com (Postfix) with ESMTPA id 40307C0001A; Thu, 30 Apr 2015 06:58:41 -0400 (EDT) Message-ID: <55420ADE.8000609@dronecode.org.uk> Date: Thu, 30 Apr 2015 10:58:00 -0000 From: Jon TURNEY Reply-To: cygwin@cygwin.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@cygwin.com Subject: Re: Terminal window hostname always showing References: <553B4F0B.4080002@acarver.net> In-Reply-To: <553B4F0B.4080002@acarver.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2015-04/txt/msg00648.txt.bz2 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@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@host.example.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