double click to select phrase

Don Christensen djc at cisco.com
Fri Aug 25 17:30:36 CEST 2006


Anthony Ewell wrote:
...
> Any idea how to get xfterm4 to act like the console and/or gnome's
> stock terminal?  How do I set my word separator?
> 
> Many thanks,
> --Tony

Assuming xfterm4 is running xterm, I found the following in the
xterm manpage:

CHARACTER CLASSES
        Clicking  the left mouse button twice in rapid succession will cause all charac-
        ters of the same class (e.g., letters, white space, punctuation) to be selected.
        Since  different  people  have different preferences for what should be selected
        (for example, should filenames be selected as a whole or only the separate  sub-
        names),  the  default mapping can be overridden through the use of the charClass
        (class CharClass) resource.

        This resource is a series of comma-separated of range:value pairs.  The range is
        either  a single number or low-high in the range of 0 to 65535, corresponding to
        the code for the character or characters to be set.   The  value  is  arbitrary,
        although  the  default  table  uses  the character number of the first character
        occurring in the set.  When not in UTF-8 mode, only the first 256 bytes of  this
        table will be used.

        ... <snip>

        For example, the string ‘‘33:48,37:48,45-47:48,38:48’’ indicates that the excla-
        mation mark, percent sign, dash, period, slash, and ampersand characters  should
        be  treated  the same way as characters and numbers.  This is useful for cutting
        and pasting electronic mailing addresses and filenames.

I'll leave it as an exercise for the reader as to how to utilize this
information.  ;-)

By the way, xterm exhibits the same behavior for me as you describe.
So you could use the manpage and figure out how to make xterm do what
you want, or you could have xfterm4 start up a different terminal
program.

-Don

-- 
Don Christensen       Senior Software Development Engineer
djc at cisco.com         Cisco Systems, Santa Cruz, CA
   "It was a new day yesterday, but it's an old day now."



More information about the Xfce mailing list