[Top][All Lists]

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

Re: Question about SCS (select character set)

From: Thomas Dickey
Subject: Re: Question about SCS (select character set)
Date: Thu, 28 Feb 2019 18:26:11 -0500
User-agent: Mutt/1.5.23 (2014-03-12)

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


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>

Attachment: signature.asc
Description: Digital signature

reply via email to

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