Looking at the code in question (which turns out to come from the kernel
rather than consolation itself), I see another problem: it is hard-coded for
latin-1 (with somehow punctuation being included), which is wrong in a vast
majority of cases: unconfigured console, including Debian's, uses a custom
charset that mixes CP437 with ISO-8859-1, causing consolation to consider
line-drawing characters as word chars which is definitely wrong --
especially that frames very often live next to words an user wants to copy.
When the console is configured, it almost always does a charset other than
ISO-8859-1 (as those who want that are usually satisfied with the default),
and charsets I've looked at do provide line-drawing as well.
Thus, I see that the kernel assumes the mouse daemon will configure this
with TIOCL_SELLOADLUT -- gpm does so. This means here's a workaround for
this problem: install gpm, remove it, re-install consolation, and until
reboot you're set :p
For the record, the unconfigured default is:
static u32 inwordLut[8]={
0x00000000, /* control chars */
0x03FF0000, /* digits */
0x87FFFFFE, /* uppercase and '_' */
0x07FFFFFE, /* lowercase */
0x00000000,
0x00000000,
0xFF7FFFFF, /* latin-1 accented letters, not multiplication sign */
0xFF7FFFFF /* latin-1 accented letters, not division sign */
};
I guess it should be changed to match the default charset, but that's a
matter for kernel guys not you. I can patch that but with the only users
of this code being gpm (which overrides the default) and now consolation,
I'd prefer hearing your opinion first.
Meow!
--
The bill declaring Jesus as the King of Poland fails to specify whether
the addition is at the top or end of the list of kings. What should the
historians do?