On Fri, 28 Jan 2000, mike ledoux wrote:
> I'm not sure how to make it change for every command run...
That seems to be the killer. Thanks to you and several others, I can now
easily set my xterm title bar to whatever I want. Using the bash prompt, I can
put my current working directory into the title for idle shell windows. But I
cannot find a way to execute a command before the "real" command executes in
bash.
> I then have shell scripts for some common programs that call out to
> xrename. What I've never figured out is how to save the current
> title, to restore when the job finishes executing. If you can figure
> *that* out, I'd be quite grateful.
On my system, a variable name called WINDOWID shows up, different for every
terminal window. I assume it is some sort of handle to the window in which
the shell is running. Could you write a small X program that queries the X
server for the title of the window with that ID, and writes it to stdout?
--
Ben Scott
[EMAIL PROTECTED]
**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************