Re: FVWM: Changing the xterm title bar label

From: Brandon M. Browning <browninb_at_pacificu.edu>
Date: Thu, 8 Feb 1996 17:04:42 -0800 (PST)

On Thu, 8 Feb 1996, Sean Kelly wrote:

> And if you're a tcsh-aficionado:
>
> if ($term == xterm) then
> set prompt="%{\e]2\;%m:%~^g\e]1\;%m^g\r%}%B%m %h %#%b "
> else
> set prompt="%m %h %# "
> endif

Alternately (found this by looking in the tcsh man page. Guess what? It
explains on how to do the very question asked...):

   if ($term == xterm) then
        alias cwdcmd 'echo -n "\033]2;${HOST}:$cwd\007\033]1;${HOST}\007"'
   endif

I couldn't get ^[ to work, but escaping works for me. What's cwdcmd?

<snip>

       Tcsh now supports a special alias, cwdcmd, which if set
       holds a command that will be executed after changing the
       value of $cwd. For example, if the user is running on an
       X window system xterm(1), and a re-parenting window man-
       ager that supports title bars such as twm(1) and has done:

> alias cwdcmd 'echo -n "^[]2;${HOST}:$cwd ^G"'

       then the shell will change the title of the running
       xterm(1) to be the name of the host, a colon, and the full
       current working directory.


-- Brandon Browning )
   Student System Administrator at Pacific University (
   http://tardis.pacificu.edu/~browninb/ c[]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"The sky was full of stars and every star an exploding ship...one of ours."
        -- Sinclair (re: The Line), "The Gathering"
--
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 Feb 08 1996 - 19:02:25 GMT

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