Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Nov 2010 16:12:04 -0200
From:      Renato Botelho <rbgarga@gmail.com>
To:        Ed Schouten <ed@80386.nl>
Cc:        Eir Nym <eirnym@gmail.com>, FreeBSD Mail Lists <freebsd-current@freebsd.org>
Subject:   Re: Syscons and termcap
Message-ID:  <AANLkTi=_KqR78Ay3vnUSTw1g6LZ4cWtF_t3FT=1HedSL@mail.gmail.com>
In-Reply-To: <20101109174542.GM2054@hoeg.nl>
References:  <AANLkTi=Sd-VpqcBGHy%2BNATC9qL=YY2CcJ1aQ8O3XBk07@mail.gmail.com> <20101109100319.GV2054@hoeg.nl> <AANLkTikdrszg4F_zPhCAb3=Hvr28mtfzi8TU3j0LwT_X@mail.gmail.com> <20101109174542.GM2054@hoeg.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 9, 2010 at 3:45 PM, Ed Schouten <ed@80386.nl> wrote:
> * Renato Botelho <rbgarga@gmail.com>, 20101109 17:08:
>> Well, few weeks ago I moved from ISO-8859-1 to UTF-8 on my Xorg
>> environment, and after reading this I decided to make a test.
>>
>> I rebuilt my 9.0-current (r215031) with option TEKEN_UTF8 in kernel
>> config, and after configure my syscons to use cp850-* fonts i can
>> see UTF-8 chars properly \o/
>
> Well, the point here is that it just performs some really hackish
> translation to CP437, not CP850, on the output path. It is really not
> robust. Copy-pasting is also broken because of it, because it pastes
> CP437 characters.

OK, i changed my fonts to cp437.

>> The only thing i cannot do here is to type chars with accent like =E1=E9
>> on console, because it seems to don't respect deadkeys, when I
>> press ' the char ' is show and never wait the next char to compose
>> a new one when necessary. Is it a knwon issue or i'm doing
>> something wrong?
>
> This is a known issue, since there is no translation from Unicode code
> points to UTF-8 sequences. In other words, if you press =EB, the keyboard
> layer will properly send a 235 to Syscons, but instead of encoding it as
> 0xC3 0xA9, will just emit a single byte, having value 0xE9.
>
> Maybe a patch like this could already get that working, but it's just a
> quick hack.
>
> =A0 =A0 =A0 =A0http://80386.nl/pub/syscons-utf8.txt

It had no effect on console but, i don't know why, screwed up
my Xorg keymap, some meta keys (Mod4) stop working even
if I run a setxkbmap like this:

/usr/local/bin/setxkbmap -rules xorg -symbols
"pc(pc105)+sun_vndr/usb(sun_usb)+pc(pc105)+us(intl)"

Now i back old kernel and everything is working fine.

It's not something I need, but would be nice to have console
working with UTF-8 and accent keys :)

--=20
Renato Botelho



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=_KqR78Ay3vnUSTw1g6LZ4cWtF_t3FT=1HedSL>