`\x1b(B` 是做什么的?

What does `\x1b(B` do?

我是 Blessed 用户,最近,当我试图找出 term.bold() 函数的内容时,我得到了这个输出: \x1b[1m\x1b(B\x1b[m

我明白 \x1b[1m\x1b[m 是做什么的,但是 \x1b(B 是做什么的?我尝试打印它,但它似乎根本没有做任何事情。

提前致谢!

控制序列\x1b(B选择默认字符集ASCII。见 XTerm Control Sequences:

ESC ( C   Designate G0 Character Set (ISO 2022, VT100).
          Final character C for designating 94-character sets.  In this
          list, 0 , A  and B  apply to VT100 and up, the remainder to
          VT220 and up.  The VT220 character sets, together with the
          Portuguese character set are activated by the National
          Replacement Character controls.  The A  is a special case,
          since it is also activated by the VT300-control for British
          Latin-1 separately from the National Replacement Character
          controls.
    ...
            C = B  -> United States (USASCII).

这是为了防止终端被设置为其他字符集,例如,line-drawing. Blessed 可能将其作为 \x1b(B\x1b[m 的一部分进行检索,例如,在

    normal = tigetstr('sgr0')

进一步阅读: