On Fri, Dec 02, 2016 at 01:38:18PM +0100, Adam Borowski wrote:
> 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
Which incidentaly is exactly what I do, though purely by chance, not by
design.
> 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.
In my view, what should be done kernel-side is to allow to mmap()
/dev/vcsa read-write so that consolation can implement everything
user-side without using TIOCLINUX (which is very awkward and limited).
On the other hand, if you write a patch so that consolation does the
same as gpm, I would be happy to apply it.
Cheers,
--
Bill. <[email protected]>
Imagine a large red swirl here.