On Mon, 20 Feb 2006, Dag Wieers wrote:

> On Mon, 13 Feb 2006, Michael Deegan wrote:
> 
> > On Wed, Jan 18, 2006 at 02:28:21PM +0100, Dag Wieers wrote:
> > > Not at this time. Before I come up with a patch (which is really trivial) 
> > > I'm wondering why you are opposed to it, or if there's something that can 
> > > be done to find a common ground. I'm reluctant to add yet another option 
> > > that only satisfies a smallminority of the users.
> > 
> > Largely because I prefer the window title to be chosen by me, rather than
> > by whatever program happens to (sometimes) be running in a tab in one of my
> > four 15-tab mrxvt's.
> > 
> > Also note that (AFAIK) there is no -requirement- for shells to clean up
> > after processes that set titles for themselves...
> 
> I agree with your assessement. However I wonder if there's a better way to 
> say 'I do not like tools to change the termtitle).
> 
> I wonder if there is a capability setting that one can enable or disable 
> and that I can look at. That way you can simply say you don't want it (and 
> ask all projects that rewrite the termtitle to check the capability).
> 
> Otherwise you'll have to specify it manually all the time.

How it works in Bash is that the PROMPT_COMMAND contains the escape 
sequences to change the Xterm title. However, programs you run do not have 
access to this PROMPT_COMMAND environment variable, because it is not 
exported.

If it was exported, I could at least use that to see if that capability is 
being used on the system. Ok, that doesn't grant me the right to overwrite 
it, but at least I would be sure the shell would fix it after dstat is 
exited. Or I could reset it myself :)

Now, what I added today to dstat is a check for XTERM_SHELL. If I find my 
shell is bash I replace the xterm title. Not sure if that is a better 
implementation or if this helps in any way for you. Though I'm still open 
to look at a way to make this work better without adding another command 
line option.

Kind regards,
--   dag wieers,  [EMAIL PROTECTED],  http://dag.wieers.com/   --
[all I want is a warm bed and a kind word and unlimited power]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to