[Top][All Lists]

[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,

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>

Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]