Date: Sun, 14 Mar 2021 23:40:36 -0400
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.
> so
> > that such an interface becomes available in the future could not be
> > discounted as a possibility.
>
> Already done, 20 years ago. See
> https://en.wikipedia.org/wiki/ISO/
> IEC_2022#Interaction_with_other_coding_systems
>
> 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
> internal
> 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
>
> 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.
> so
> > that such an interface becomes available in the future could not be
> > discounted as a possibility.
>
> Already done, 20 years ago. See
> https://en.wikipedia.org/wiki/ISO/
> IEC_2022#Interaction_with_other_coding_systems
>
> 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
> internal
> 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
>
Received on 2021-03-14 22:41:05