[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: xterm double-click to select words like "cups-bsd", "/var/log"



On Fri, Mar 19, 2004 at 11:51:13PM -0500, Jameson C. Burt wrote:
<snip>
> HOW CAN I GET DOUBLE-CLICKED WORDS TO HIGHLIGHT EVERYTHING BETWEEN
> SPACES; eg, all of "cupsys-bsd" or all of "/var/log/messages"?
> 
> 
> After either double-clicking or a more awkward highlighting,
> I click the middle mouse button to drop (ie, copy) my words "cupsys" and
> "cupsys-bsd", forming a command-line like
>    dpkg -L  cupsys  cupsys-bsd  |xargs zgrep -i lpadmin
> This is a quick way to form command-lines
> that would be quicker if double-clicked words were delimited
> not by any "-" or "/", but by spaces only.

I believe word boundaries in xterms are set by the charClass attribute.
Search 'man xterm' for charClass and see if you can get something from
that that can help you.

HTH

Bec



Reply to: