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:message-id:date:from:mime-version:to:subject
	:content-type:content-transfer-encoding; q=dns; s=default; b=v2R
	V2MlQLOEoOrLY+xL5eQJv9808wy85JBsWjIBYM6PJeYS0eH7kOfSKxsr5ENRRKMO
	76RBOF4QCdX0ibc4yYLQxTdQTQINL8miji7qhtevb9X7O6qeDfT00uEP9LZyKAD8
	zm994vG8Ws3UE69J08kteisVv/gFOUClCycgDYyQ=
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:mime-version:to:subject
	:content-type:content-transfer-encoding; s=default; bh=jUHGgFmOW
	JQg2nfSZiLQHikBPfs=; b=o7WcdcStkgPmvbOM1yrp2+O+oRUzBZLWJPftsA9W3
	1QMbFWEKCUn9Vc+n+WEEgWt6HnJfeOlAAVu8OWcvBQQhLwSQReKc+ewZGNxpCGDj
	XRGEKOXd15lfj7U+2EmlXhHkKxlL/MkCikaXp+UKPQK5UpGynW+opMF16sgSqQAd
	Pg=
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.9 required=5.0 tests=BAYES_00,RDNS_DYNAMIC,SPF_HELO_PASS,SPF_PASS,TVD_RCVD_IP autolearn=no version=3.3.2
X-HELO: mail.acarver.net
Message-ID: <553B4F0B.4080002@acarver.net>
Date: Sat, 25 Apr 2015 01:23:39 -0700
From: AC <cygwin62y9@acarver.net>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Terminal window hostname always showing
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit

Is it possible to turn off the automatic hostname that the window
manager is adding to terminal windows?

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

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.

It does the same thing if I use -T/-n on the remote xterm command.  I
end up with something like

title-used-on-command-line@host.example.com

I've verified that it's Cygwin's window manager doing it by logging in
from a regular Linux box and changing the title manually, no host name
showing up.  I'd like to stop this so the titles are what I set.

This is the data from the xserver log:

Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.16.3.0
OS: CYGWIN_NT-6.1 data2 1.7.34(0.285/5/3) 2015-02-04 12:14 x86_64
OS: Windows 7 Service Pack 1 [Windows NT 6.1 build 7601] (Win64)
Package: version 1.16.3-1 built 2014-12-30

XWin was started with the following command line:

/usr/bin/XWin :0 -multiwindow -nolisten tcp -auth



--
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

