| delorie.com/archives/browse.cgi | search |
| 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:mime-version:in-reply-to:references:date | |
| :message-id:subject:from:to:content-type; q=dns; s=default; b=y2 | |
| cxfKhLxgahgvJqD/y0/CkL20o2E/JF5oyhAWFk/7DxHoeNWK+pqBpGtE8lRhy6dK | |
| 81rFOCFdUd++VLOCy0ALOXcB+6vl0qL5lOYGA2FsLs/LLXCxDKixqE4uyN7pg36r | |
| 22iPazwHkN+KIX+b8m9T2Thz7PsgfSvu8vz5pncIA= | |
| 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:mime-version:in-reply-to:references:date | |
| :message-id:subject:from:to:content-type; s=default; bh=7PDSbElO | |
| hGun/9+z5tL6wjnM4Hk=; b=IR7ZoBGkT06y8Eva2xPQtl+beIFDkArVktT87xyz | |
| 8CZE7ec1qNQAROkcrADTCZq3qZHy045BDKwFU1kJVqjiQceMGg0CMKlSvzl3Le7D | |
| Iroab8ifnmjIVn0HAUXkR+nMboU961+izL43jeXORmOauqXspu77VoBHlMPeJkyU | |
| boE= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| 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.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 |
| X-HELO: | mail-we0-f179.google.com |
| MIME-Version: | 1.0 |
| X-Received: | by 10.180.210.171 with SMTP id mv11mr8518472wic.44.1397029061143; Wed, 09 Apr 2014 00:37:41 -0700 (PDT) |
| In-Reply-To: | <20140408145502.GA25569@tastycake.net> |
| References: | <CAOSUUSo-UMTJY0o5D1PBGix50NRvxmuzhTaTpqKtrOomCZBT0w AT mail DOT gmail DOT com> <20140408145502 DOT GA25569 AT tastycake DOT net> |
| Date: | Wed, 9 Apr 2014 09:37:41 +0200 |
| Message-ID: | <CAEhDDbDvJkfWCw5X_6HUoGaW=H4m04CSLbJVbBeEs7S6eQZCtw@mail.gmail.com> |
| Subject: | Re: set Cygwin terminal title |
| From: | Csaba Raduly <rcsaba AT gmail DOT com> |
| To: | cygwin list <cygwin AT cygwin DOT com> |
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |