This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: set Cygwin terminal title
- From: xmoon 2000 <xmoon2000 at googlemail dot com>
- To: cygwin <cygwin at cygwin dot com>
- Date: Wed, 9 Apr 2014 09:25:32 +0100
- Subject: Re: set Cygwin terminal title
- Authentication-results: sourceware.org; auth=none
- References: <CAOSUUSo-UMTJY0o5D1PBGix50NRvxmuzhTaTpqKtrOomCZBT0w at mail dot gmail dot com> <20140408145502 dot GA25569 at tastycake dot net> <CAEhDDbDvJkfWCw5X_6HUoGaW=H4m04CSLbJVbBeEs7S6eQZCtw at mail dot gmail dot com>
@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 <rcsaba@gmail.com> 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