Re: xterm
On Mon, Jan 29, 2001 at 02:38:11PM +0100, Ionel Mugurel Ciob?c? wrote:
> Hi all,
>
> Someone knows where I can get the default behaviour of characters
> from 128 to 255, if they are separators or not.
>
> In man xterm it sais about class CharClass, but it refer only to
> 0-127:
>
> The default table is
>
> static int charClass[128] = {
> /* NUL SOH STX ETX EOT ENQ ACK BEL */
> 32, 1, 1, 1, 1, 1, 1, 1,
> .
> .
> .
> /* x y z { | } ~ DEL */
> 48, 48, 48, 123, 124, 125, 126, 1};
>
>
> Info xterm give the same answer as man xterm.
this seems to be a highly version-specific issue. The newer versions
of xterm seem to support the full 8-bit charset and even unicode
in CharClass definitions.
To quote from the manpage that comes with the most recent source
distribution of xterm (e.g. http://dickey.his.com/xterm/xterm.tar.gz):
(...)
CHARACTER CLASSES
Clicking the middle mouse button twice in rapid succession
will cause all characters 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 subnames), 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 charac-
ter 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.
The default table starts as follows -
static int charClass[256] = {
(...)
I can't tell you the exact version in which support for this was added.
If you are interested in all the details, you might want to browse the
changelog at
http://dickey.his.com/xterm/xterm.log.html
(though that's probably more than you want to know :)
Also, if you are not afraid of reading the source, have a look at
the file "charclass.c" from the source distribution...
HTH,
Erdmut
--
Erdmut Pfeifer
science+computing gmbh
-- Bugs come in through open windows. Keep Windows shut! --
Reply to:
- Follow-Ups:
- Re: xterm
- From: Ionel Mugurel Ciob?c? <tgakic@bambam.chem.tue.nl>
- References:
- xterm
- From: Ionel Mugurel Ciob?c? <tgakic@bambam.chem.tue.nl>