[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: utf8 character replacement in terminfo - is it possible?
From: |
Thomas Dickey |
Subject: |
Re: utf8 character replacement in terminfo - is it possible? |
Date: |
Sat, 6 Jan 2018 11:11:05 -0500 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Sat, Jan 06, 2018 at 10:48:44AM +0500, Nikita Zlobin wrote:
> Hello.
> I sent subscribtion request, but while it is in pgrogress...
>
> I had first experiment, customizing terminfo file (xterm-256color,
> which is used by many modern gtk terminals as well as kmscon by
There are not "many", and "modern" isn't a good term for those.
> default).
>
> My goal was to replace corner characters to use rounded by defaults.
> I dumped source with infocmp and changed acsc to this:
>
> acsc=``aaffggiij╯k╮l╭m╰nnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
>
> Later i was told at unixforum.org, that only ascii is allowed. There is
That's close: only 8-bit characters are allowed (ASCII is 7-bits, the
first 128 codes in the 8-bit 0..255 range).
There are examples of 8-bit characters in the older Linux terminal descriptions
which rely upon PC-character sets:
linux-basic|linux console,
am, bce, eo, mir, msgr, xenl, xon,
it#8, ncv#18, U8#1,
acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i
\316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u
\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
Because curses has line-drawing functions which assume the existence
of these 8-bit characters, and because there's no terminfo equivalent
for them in UTF-8 (a multi-byte encoding), it maintains a table of
Unicode values for the UTF-8 configuration.
--
Thomas E. Dickey <address@hidden>
https://invisible-island.net
ftp://ftp.invisible-island.net
signature.asc
Description: Digital signature