Discussion:
xterm charClass
(too old to reply)
Caj Zell
2003-08-24 15:50:49 UTC
Permalink
Hello,

I have the following in my ~/.Xdefaults

xterm*charClass: 33-126:48
(tried XTerm*charClass also...)

I do 'xrdb -load .Xdefaults' and can see that this is accepted after a
'xrdb -query|grep char' which displays the above line. Still, when I
am in an xterm and double click for instance "dfgdfg:sdfgdsgf" only
the left or right of the ':' is selected. I thought I had done what I
should according to the book "Unix Power Tools 3d Ed."

What am I doing wrong?

Caj Zell
Len Philpot
2003-08-24 18:52:37 UTC
Permalink
Post by Caj Zell
I have the following in my ~/.Xdefaults
xterm*charClass: 33-126:48
(tried XTerm*charClass also...)
Are you running Red Hat 8 or 9? I've heard reports that .Xdefaults is
ignored, and .Xresources is read instead. I've just symlinked
.Xresources to my existing .Xdefaults and mine works.
Post by Caj Zell
I do 'xrdb -load .Xdefaults' and can see that this is accepted after a
'xrdb -query|grep char' which displays the above line. Still, when I
am in an xterm and double click for instance "dfgdfg:sdfgdsgf" only
the left or right of the ':' is selected. I thought I had done what I
should according to the book "Unix Power Tools 3d Ed."
The change won't be picked up by the existing xterm (AFAIK, but I could
definitely be wrong). I always start a new one to test X resources.

This works for me, although I've broken it up a bit more than you:

xterm*charClass: 33:48,35-37:48,40-41:48,43:48,45-47:48,91:48,93:48,126:48
--
-- Len Philpot ><> --
-- ***@philpot.org http://philpot.org/ --
-- ***@yahoo.com (alternate email) --
Caj Zell
2003-08-25 11:09:07 UTC
Permalink
One more thing, though:

I like to Meta-b and Meta-f (emacs-style) in an xterm and I hoped that
this change would affect that as well, i.e. when I Meta-b I would jump
to the next whitespace, but this does not occur, even though the
double-clicking acts fine. Is there another configuration for this?

For example:

Frank*Zappa*is_THE_composer period.

Standing on "F", I would like to get between "r" and "p" by typing
Meta-f. How can I achieve this?

Caj Zell
Thanks, Len!
This worked out fine when I symlinked .Xresources as you said (and
yes, I am running RH9)
Caj Zell
Post by Len Philpot
Post by Caj Zell
I have the following in my ~/.Xdefaults
xterm*charClass: 33-126:48
(tried XTerm*charClass also...)
Are you running Red Hat 8 or 9? I've heard reports that .Xdefaults is
ignored, and .Xresources is read instead. I've just symlinked
.Xresources to my existing .Xdefaults and mine works.
Post by Caj Zell
I do 'xrdb -load .Xdefaults' and can see that this is accepted after a
'xrdb -query|grep char' which displays the above line. Still, when I
am in an xterm and double click for instance "dfgdfg:sdfgdsgf" only
the left or right of the ':' is selected. I thought I had done what I
should according to the book "Unix Power Tools 3d Ed."
The change won't be picked up by the existing xterm (AFAIK, but I could
definitely be wrong). I always start a new one to test X resources.
xterm*charClass: 33:48,35-37:48,40-41:48,43:48,45-47:48,91:48,93:48,126:48
Thomas Dickey
2003-08-26 12:25:35 UTC
Permalink
Post by Caj Zell
I like to Meta-b and Meta-f (emacs-style) in an xterm and I hoped that
this change would affect that as well, i.e. when I Meta-b I would jump
to the next whitespace, but this does not occur, even though the
double-clicking acts fine. Is there another configuration for this?
that sounds like you're talking about the shell (bash, for instance).
--
Thomas E. Dickey <***@radix.net> <***@his.com>
http://dickey.his.com
ftp://dickey.his.com
Loading...