Have idea for titlebar tweak -- need help with syntax

Lee Rothstein lee@veritech.com
Mon Sep 27 22:58:00 GMT 2010

  On 9/24/2010 5:15 AM, SJ Wright wrote:
> I'd like my terminal title bar to show my current working directory, 
> the running process (with a fall-back to the active shell when idle) 
> and the word "Cygwin."
> I have an old .bashrc file in which I collected code for the middle 
> bit (running process), but putting the three together and making them 
> work regardless of $TERM type is a challenge that's more than a little 
> 'beyond my ken.' Nevertheless, as I think it would look great and be 
> sufficiently informative at the same time, I'd like to pursue it.
> I haven't given up totally on rxvt: mintty has more than a few 
> shortcomings imo, but I suspect a large part of that is that I'm not 
> used to using an xterm variant outside of X or GNOME. Anyway, all of 
> that is for another email.
> Where it meets at odd angles with this idea, is in that I suspect if I 
> start with "tweaked" xterm settings that check out in rxvt, the 
> strictly X syntax will work in mintty. In a sense, by going that 
> route, I'll be 'ahead of the game' instead of 'trying to catch up.'
> Any help in this regard would be much appreciated.

See attachment. Invoke in your profile as:
. set_prompt.s

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: set_prompt.s
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100927/c441f7e4/attachment.ksh>
-------------- next part --------------
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

More information about the Cygwin mailing list