|
From: | Bryan Christ |
Subject: | Re: Question about SCS (select character set) |
Date: | Fri, 1 Mar 2019 12:13:02 -0600 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |