>>>>> "Ken" == Ken Dickerson <kdicke_at_atl.com> writes:
Ken; I am new to this list, so forgive me if this question has been asked and/or
Ken; beaten to death. I have newly started using fvwm. One of the things I was
Ken; doing when I was in Motif, was to use the Xterm Control Sequences to change
Ken; the icon name and window title. I would like to continue doing that in fvwm,
Ken; but have found that the same sequences do not affect the title. Is there
Ken; any simple way I can change the title via a script or alias? I need to
Ken; change it frequently. Are there different sequences used for fvwm that I
Ken; can get a hold of?
To add to this thread: If you use tcsh version 6 or higher, here's
a neat way to set xterm's title & icon in one fell swoop.
Please note that the '^g' is literally '^' and 'g'. tcsh will
replace it with CTRL-G; '\e' is escape, and again tcsh will do the
substitution.
Enjoy.
---------------------- cut & paste ------------------
# Snippets from Amir's .tcshrc
if ("$tcsh" == "1") then
set TCSH_VERSION = 5
else
set TCSH_VERSION = `echo $tcsh | awk -F. '{print $1}'` # Should give 6
endif
if ($TCSH_VERSION >= 6) then
# all kinds of things ...
# ...
set prompt = '%M:%U%~%u [%h]%# ' # include underlined dir, home as '~'
endif
if ("$TERM" == "xterm") then
# Install 'host: dir' in xterm titlebar and 'host' in icon name
set prompt = "%{\e]2\;%m: %/^g\e]1;%m^g\r%}""$prompt"
endif
# The end.
---------------------- cut & paste ------------------
/* Amir J. Katz E-mail: amir_at_ddddf.com URL:
http://www.ndsoft.com */
/* New Dimension Software, LTD., Tel-Aviv, Israel */
/* .. I busted a mirror and got seven years bad luck, but my ..*/
/* .. lawyer thinks he can get me five. (Steven Wright) ..*/
--
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 Mon May 27 1996 - 05:37:03 BST