Re: FVWM: Window title for xterm

From: Alan Wild <arwild01_at_starbase.spd.louisville.edu>
Date: Thu, 16 May 1996 13:40:14 -0400 (EDT)

Rasmus Peter Tamstorf wrote:
>
> 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 ?

This is what I use to change the xterm title to include my current host
and directory. The iconname has also been changed to reflect the host.
BTW, this is all for bash. You set your prompt to this string and then
each time your prompt changes, the title/iconname is updated:

        PS1="\[\033]0;\h:\w\007\033]1;\h\007\]\h\$ "

The \033 implies an ESC character. The \007 implies a ^G.

-Alan

-- 
Alan Wild                            arwild01_at_starbase.spd.louisville.edu       
f/s/c lou95                      http://www.spd.louisville.edu/~triangle/
IT-HSC Consultant                 http://www.spd.louisville.edu/~arwild01
--
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 - 12:40:22 BST

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