selectel / pyte

Simple VTXXX-compatible linux terminal emulator
http://pyte.readthedocs.org/
GNU Lesser General Public License v3.0
658 stars 102 forks source link

echo -e '\e[12$p' #117

Closed jonathanslenders closed 6 years ago

jonathanslenders commented 6 years ago

The above escape sequence doesn't seem to work correctly. I'm not sure what it means, but this will display a "p", while it should not display anything.

Tested with Pyte 0.8.0. This escape sequence is generated by Vim 8.1.26 when loading.

FYI: I'm working again on pymux, converting it to prompt_toolkit 2.0. Thanks again for Pyte!

superbobry commented 6 years ago

Thanks for the report @jonathanslenders! This seems to be an XTerm sequence

CSI Ps $ p
          Request ANSI mode (DECRQM).  For VT300 and up, reply DECRPM is
            CSI Ps; Pm$ y
          where Ps is the mode number as in SM/RM, and Pm is the mode
          value:
            0 - not recognized
            1 - set
            2 - reset
            3 - permanently set
            4 - permanently reset