Re: FVWM: FVWM - fvwmrc escape codes

From: Mark Boyns <boyns_at_sdsu.edu>
Date: 16 May 1997 07:18:55 -0700

15 May 1997 han.solo_at_millennium.falcon.org writes:

> for the life of me I cannot remember how to do escape codes in a fvwmrc
>
> for instance, I want to set the title of rxvt to include the version...
>
> according to the faq, one does it by setting the title with the escape
> sequence of "esc[8n" in it, which im assuming will turn into the version
> number..
>
> any ideas?

They are really called xterm escape sequences, which rxvt supports.
Here's an example for bash which sets the title and icon name.

xterm-title ()
{
    if [ -n "$1" ]
    then
        builtin echo -e -n "\033]2;$1\007"
    else
        builtin echo -e -n "\033]2;${WHOAMI}_at_${HOSTNAME}:${PWD}\007"
    fi
}

xterm-icon ()
{
    if [ -n "$1" ]
    then
        builtin echo -e -n "\033]1;$1\007"
    else
        builtin echo -e -n "\033]1;${HOSTNAME}\007"
    fi
}

cd ()
{
    if [ "$1" = "" ]
    then
        builtin cd
    else
        builtin cd "$_at_"
    fi

    if [ $TERM = "xterm" ]
    then
        xterm-title
        xterm-icon
    fi
}
--
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 Fri May 16 1997 - 09:19:11 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:00 BST