@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 <rcs...@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