This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: set Cygwin terminal title


Hi xmoon,

Please don't top-post (http://cygwin.com/acronyms/#TOFU)

On Wed, Apr 9, 2014 at 10:25 AM, xmoon 2000  wrote:
> @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.

When you have a long-running script, you don't need to call sleep; you
can set the title and then run the script. When the script ends, the
title will be reset by PS1.

A more permanent solution could be this script:
http://www.twistedmatrix.com/users/glyph/preexec.bash.txt

It will change the terminal title to the running command without you
having to explicitly set it.

Csaba
-- 
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]