bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about SCS (select character set)


From: Bryan Christ
Subject: Re: Question about SCS (select character set)
Date: Fri, 1 Mar 2019 12:13:02 -0600

Thomas,

As always, thanks for the speedy reply.  It looks like I was already treating ESC ( B as a sequence to disable altcharset.  What about something like the reverse attribute... does it have any implied meaning for that? (or any other attrs)?

On Thu, Feb 28, 2019 at 5:26 PM Thomas Dickey <address@hidden> wrote:
On Thu, Feb 28, 2019 at 03:55:58PM -0600, Bryan Christ wrote:
> Does something like ESC ( B have any attribute ramifications?  In other
> words, is it implied that certain things get turned off like A_REVERSE,
> etc...?  Until now, I've been ignoring this code but I'm not sure if I
> should be.

This selects the character set for "G0" (essentially codes 32-126):

        ESC ( B

and that's ASCII which is mostly a no-op from your point of view.
However, if you see

        ESC ) 0

then that's preparing for something like

        ^N

to turn on alternate character set.  Or

        ESC ( 0

turns it on right away.  In that case, you ought to keep a lookout for

        ESC ( B

which turns it off again.  That's oversimplified, but in any "modern"
terminal, you're not going to have cases where switching the character
set to/from graphics mode is going to affect other attributes.

--
Thomas E. Dickey <address@hidden>
https://invisible-island.net
ftp://ftp.invisible-island.net


--
Bryan
<><

reply via email to

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