www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/24/06:16:20

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_RX,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <4C9C6C3A.9020805@charter.net>
References: <4C9C6C3A DOT 9020805 AT charter DOT net>
Date: Fri, 24 Sep 2010 12:16:02 +0200
Message-ID: <AANLkTimuruRp4cniQezakcv48=c1Su9LVDn4Y4h4M5pb@mail.gmail.com>
Subject: Re: Have idea for titlebar tweak -- need help with syntax
From: Csaba Raduly <rcsaba AT gmail DOT com>
To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Fri, Sep 24, 2010 at 11: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.'

I can't quite understand what is holding you up.

I use a slightly modified version of the following (an emulation of
zsh's preexec for bash):
http://hwi.ath.cx/jshtools/preexec.bash

It works fine in mintty, xtrem and rxvt (rxvt-20050409-21).

-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ L w++$ tv+ b++ DI D++ 5++
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019