<<< Date Index >>>     <<< Thread Index >>>

Re: Terminal for mutt with clickable links.



Hello Thomas,

* Thomas Dickey <dickey@xxxxxxx> [040812 01:38]:
> I seem to recall that there was a patch for rxvt to do something like that
> (and also that it was incorporated into rxvt or some related program such
> as Eterm).  That used regular expressions (which can be a portability
> problem if one doesn't limit oneself to the various flavors of linux).

would be there a chance to get something like this upstream? Character
classes are fine for me.

I am using the following at the moment:

.Xdefaults: (double klick on urls and they get selected)
        ! Allow to select urls, eMail Adresses by double klick
        XTerm*charClass: 
33:48,37-38:48,44-47:48,64:48,58:48,126:48,61:48,63:48,43:48,35:48

.fvwm2rc: (pressing printscreen focus the opera window and executes the openurl 
script)
        Key     Print   A       N       OpenURL

        AddToFunc OpenURL
                + I SmartStart opera
                + I Exec exec $HOME/bin/openurl

        AddToFunc SmartStart
                + I Next ($0) Iconify off
                + I Next ($0) Raise
                + I Next (AcceptsFocus, $0) focus
                + I None ($0) Exec exec $1

openurl: (Tell opera to the URL from cutbuffer 0)
        #!/bin/bash

        if [ "x${UNAME}" = 'x' ]; then
                export UNAME=`/bin/uname`
        fi

        if   [ $UNAME = 'Linux' ]; then
                opera -newpage "`xcb -p 0`" &

        elif [ $UNAME = 'SunOS' ]; then
                opera -newpage "`$HOME/bin/xcb.sos5 -p 0`" &
        fi

Sincerely,
        Thomas