简体   繁体   English

未知的ansi转义码-)0 [,?7h和?7l

[英]unknown ansi escape codes - )0[, ?7h and ?7l

So I'm seeing some ANSI escape codes I'm unfamiliar with in some output. 因此,我在某些输出中看到了一些我不熟悉的ANSI转义代码。

\\x1B)0[
\\x1B[?7h
\\x1B[?7l

http://ascii-table.com/ansi-escape-sequences.php says that \\\\x1B[=7h and \\\\x1B[=7l will set and reset (respectively) the mode to enable line wrapping but those have ='s and not ?'s so idk how applicable that is. http://ascii-table.com/ansi-escape-sequences.php表示\\\\x1B[=7h\\\\x1B[=7l将分别设置和重置启用换行的模式,但是那些具有='而不是?的idk的适用性。

Any ideas? 有任何想法吗?

The first \\\\x1B)0 (if not misquoted) could be one of the character-set controls: 第一个\\\\x1B)0 (如果未错误引用)可能是字符集控件之一:

        C = 0  -> DEC Special Character and Line Drawing Set.
....
ESC ) C   Designate G1 Character Set (ISO 2022, VT100).
          The same character sets apply as for ESC ( C.

The ? ? indicates a private mode setting. 表示私有模式设置。 ISO-6429 ( ECMA-48 ) defines four: < , > , ? ISO-6429( ECMA-48 )定义了四种: <>? and = . = The corresponding mode (still quoting XTerm Control Sequences ): 相应的模式 (仍引用XTerm控制序列 ):

CSI ? Pm h
      DEC Private Mode Set (DECSET).
...
        Ps = 7  -> Wraparound Mode (DECAWM).

The application is supposed to pause briefly between changing this between reverse-video and back to the normal state. 该应用程序应该在将其切换为反向视频和返回正常状态之间短暂暂停。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM