Re: FVWM: Window title for xterm

From: Matthew N. Dodd <winter_at_jurai.net>
Date: Fri, 17 May 1996 05:23:26 -0500 (CDT)

On Fri, 17 May 1996, Rasmus Peter Tamstorf wrote:
> True, *BUT* I was hoping for even more ;-) Suppose I have an xterm in
> which I start top, gdb or something like that. Has anyone found out how
> I can make the window title reflect that ? In pseudo-code I'd like
> something like :

Well, you could just write wrappers for all the commands you run...
Probably something that knows how to parse argv[0] so you could just
make a generic wrapper. This is an ugly solution.

I think a better solution would be to add something to your shell
that would allow you to run some command before the fork/exec
of your input. tcsh has the `precmd` which is sort of what we want
but backwards. I use it to set the xterm title to the current working
directory and the hostname. `precmd` is executed before the prompt
is displayed. What we need is a sort of `postcmd` that is executed
AFTER you press enter on the CL.

And for our next silly project we can use the graphics features in
rxvt to create icons in our windows. *gag*

Have a good one.

| Matthew N. Dodd | winter_at_jurai.net | http://www.jurai.net/~winter |
| Technical Manager | mdodd_at_intersurf.net | http://www.intersurf.net |
| InterSurf Online | "Welcome to the net Sir, would you like a handbasket?"|

--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Fri May 17 1996 - 05:49:30 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:58 BST