Thus spake Rasmus Peter Tamstorf <c918885_at_student.dtu.dk>
> This question may not belong to this list, but anyway ...
> 
> Is it possible to change the title/iconname of a xterm-window dynamically 
> to show the name of the process running in the foreground if such one exists 
> or if such one does not exist the current directory ?
> 
> I am using the taskbar in fvwm2, but it looses some of its value when you 
> have 5 icons all named 'xterm'. It would be really nice if you could see 
> what was running in those xterms.
> 
>   Rasmus
Below is a snippet from a TCL script I use to set the title of each new xterm I
create.  The key is the ESC sequences...
------------
proc setXTermTitle {title} {
  # Set title of the XTERM
  puts -nonewline "\033]2;$title\007";
  # Set ICON label of XTERM
  puts -nonewline "\033]1;$title\007";
}
------------
Cheers,
Ron
------------------------------------------------------------------------
Ron Kellam                        | Phone: +613 9210 5553
Hewlett Packard Australia         | Fax:   +613 9210 5550         .-_!\
Australian Telecom Operation      | Email: ron_kellam_at_aus.hp.com / ATO \
347 Burwood Highway, Burwood East |                              \_.-._/
Victoria, Australia, 3151         | "I speak for myself..."           v
------------------------------------------------------------------------
         "Even if you're on the right track, you still get
               run over if you don't keep moving"
------------------------------------------------------------------------
--
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 Thu May 16 1996 - 17:17:02 BST