Subject: Re: Questions for LEWG for P2093R4: Formatted output
From: Hubert Tong (hubert.reinterpretcast_at_[hidden])
Date: 2021-03-14 22:40:36
On Sun, Mar 14, 2021 at 5:12 PM Thiago Macieira <thiago_at_[hidden]> wrote:
> On Sunday, 14 March 2021 11:08:16 PDT Hubert Tong via SG16 wrote:
> > None that I am aware of in particular. However, extending terminfo, etc.
> > that such an interface becomes available in the future could not be
> > discounted as a possibility.
> Already done, 20 years ago. See
> printf '\033%%G\303\251\033%%@\n'
It seems that the user may already have been in a different mode than the
one that ESC % @ invokes. If the usage of the Unicode-output capability is
not meant to change the treatment of later output to the stream via legacy
interfaces, then more complex handling is needed.
> Will show "Ã©" in any half-decent terminal (including the Linux virtual
> console, but apparently not the FreeBSD one), regardless of its own
> encoding. See this screenshot from xterm, started with LC_ALL=C.
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> Software Architect - Intel DPG Cloud Engineering
SG16 list run by email@example.com