FVWM: Dynamic Xterm title fix

From: Jonathan Watson <watson_at_linus.mitre.org>
Date: Tue, 18 Jun 1996 11:23:25 -0400 (EDT)

I have been using the cwdcmd feature in tcsh to dynamically change the
titles of my xterms. Currently I have X setup so that I have a
"controller" xterm....To quit X I exit/kill/destroy this particular Xterm
and the window manager/X/apps go down.
In my .xsession I label the "controller" xterm CONTROLLER, but when my .cshrc
executes, cwdcmd overrides the title set in my .xsession with the -title
switch and changes the name of the xterm. I have tried inserting a -e
switch in the xterm call so that I could execute a special script or set
an enviornment variable to identify the controller xterm or change the
cwdcmd alias for that xterm, but it didn't work. I have 2 major problems.

1. Any attempt to set an enviornment variable from the -e fails. (ie. setenv
CONTROLLER 1).
2. The .cshrc and shell setup scripts execute AFTER whatever I specify in
the xterm call with the -e switch.

        From these observations an various experiments I thought that if
I could read the title of the xterm within my .cshrc and use it (the
title) in an if statement I could then have the cwdcmd changed for that
specific xterm.

SO, my question is:
        How do you get the title of an xterm from within a shell script??

Any other solutions to this problem??

        TIA,
                Jonathan Watson

*-------------------------------------------*-------------------------------*
| The MITRE Corporation | Northeastern University |
| D086 Advanced Systems - Signal Processing | Boston, Mass., USA. |
| Bedford, Mass., USA. | College of Engineering (EE) |
| watson_at_linus.mitre.org | watson_at_meceng.coe.neu.edu |
*-------------------------------------------*-------------------------------*




--
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 Tue Jun 18 1996 - 10:27:29 BST

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