From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18082 invoked by alias); 9 Apr 2014 08:25:37 -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 18067 invoked by uid 89); 9 Apr 2014 08:25:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f41.google.com Received: from mail-pa0-f41.google.com (HELO mail-pa0-f41.google.com) (209.85.220.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 09 Apr 2014 08:25:34 +0000 Received: by mail-pa0-f41.google.com with SMTP id fa1so2229301pad.0 for ; Wed, 09 Apr 2014 01:25:33 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.68.170.36 with SMTP id aj4mr10485907pbc.54.1397031932959; Wed, 09 Apr 2014 01:25:32 -0700 (PDT) Received: by 10.70.95.67 with HTTP; Wed, 9 Apr 2014 01:25:32 -0700 (PDT) In-Reply-To: References: <20140408145502.GA25569@tastycake.net> Date: Wed, 09 Apr 2014 08:25:00 -0000 Message-ID: Subject: Re: set Cygwin terminal title From: xmoon 2000 To: cygwin Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2014-04/txt/msg00190.txt.bz2 @Csaba Yes - that works. Actually that's a big help - because within my looping bash script that is keeping the window title up/changing until scripts stops . Which is perfect. thanks you On 9 April 2014 08:37, Csaba Raduly wrote: > On Tue, Apr 8, 2014 at 4:55 PM, 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. > > xmoon, if you are experimenting with setting the terminal title and > indeed PS1 is resetting it, try putting a sleep command after the > title-setting echo: > > echo -ne "\033]2;I am ${USER}@${HOSTNAME} at ${PWD}\007"; sleep 3 > > Now you can admire the new title for three seconds. > > Csaba, whose echo $PS1 says > \[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[00;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\n\$ > -- > GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++ > The Tao of math: The numbers you can count are not the real numbers. > Life is complex, with real and imaginary parts. > "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds > "People disagree with me. I just ignore them." -- Linus Torvalds > > -- > 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