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:date:from:to:subject:message-id:references :mime-version:content-type:in-reply-to; q=dns; s=default; b=oe5T VCvJZw4xO6EZJAqfxfOVUbtlk/9K7K7QmHpv9BsRXiqnVglvBrtvSY+lAlySjEjB g4gdcmOKRXUwr4xYv4jNJISAJH4gDzkcgC0+beZcysJNBLKapxEMzyTB7O2LYQcV vPpsOZ9EdM6FHkhJ8MPvYolC3Xt0fHamt94gagE= 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:date:from:to:subject:message-id:references :mime-version:content-type:in-reply-to; s=default; bh=dqpJsoIEqu XMb3pKIbzbs4w0XAA=; b=Kc3D9xUr47cifCbOkU9D1ibJXDVAWfggQUTHY5FAzZ sIVr5jppNAep5x0x5LxMafn/grCrbhjdmsWCqmPvEUiN/DX6frGLEKAWtxJSq6Sp dbxj7NxCBQYQ0LE4MUfvURO6zI6Sdnkw84yCOKQ/1uhVljjEqW4CZPc32WXXJZNo E= 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.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: mail105.syd.optusnet.com.au Date: Wed, 9 Apr 2014 09:30:49 +1000 From: Duncan Roe To: cygwin AT cygwin DOT com Subject: Re: set Cygwin terminal title Message-ID: <20140408233049.GC21047@dimstar.local.net> Mail-Followup-To: cygwin AT cygwin DOT com References: <20140408145502 DOT GA25569 AT tastycake DOT net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140408145502.GA25569@tastycake.net> User-Agent: Mutt/1.5.22 (2013-10-16) X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.1 cv=PqKqMW83 c=1 sm=1 tr=0 a=+cDhJlqnNvz9E7c5l3ERGg==:117 a=+cDhJlqnNvz9E7c5l3ERGg==:17 a=y26AOypDAAAA:8 a=PO7r1zJSAAAA:8 a=M1kyBYkWWGkA:10 a=kj9zAlcOel0A:10 a=iaFubHWvAAAA:8 a=rhA2WdyN0OWgGVB1qocA:9 a=CjuIK1q_8ugA:10 X-IsSubscribed: yes On Tue, Apr 08, 2014 at 03:55:02PM +0100, Adam Dinwoodie wrote: > On Tue, Apr 08, 2014 at 03:24:29PM +0100, xmoon 2000 wrote: > > Ho can I set Cygwin termnal title? > > > > I have tried echoing every escape sequence I have found on web. > > > > None seem to work. > > It's reasonably likely your `$PS1` includes a line to set the terminal > title; I think the default Cygwin Bash profile files do that. If that's > the case, an escape sequence command to set the terminal title will > work, but will then be immediately reset by the Bash prompt being > displayed. > > To check, run `echo "$PS1"` and see if that includes a bunch of escape > sequences. If it does, to change that behaviour you'll need to work out > which file is setting `$PS1` and fix it. It'll probably be one of > `~/.bashrc`, `~/.profile` or `~/.bash_profile`. > > If that doesn't get you anywhere, read through the below, including the > link on how to ask smart questions. You've really not given us much to > go on to help you. > I have this in my .bashrc PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}:${PWD/#$HOME/~}\007"' A bit extravegant to issue after every command I suppose, but it works, Cheers ... Duncan. -- 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