selectel / pyte

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

Encode CSI as C0 control code #100

Closed acroz closed 6 years ago

acroz commented 6 years ago

Encoding the control sequence introducer as the C1 control code '\x9b' seems to clash with Unicode, which appears to not reserve this character for control use. This PR replaces it with the C0 control code '\x1b[' (ESC + [), which should avoid this issue.

For additional context, see issue #99.

superbobry commented 6 years ago

LGTM! Can you add another CHANGES entry, please?

acroz commented 6 years ago

Done!

superbobry commented 6 years ago

Awesome, thanks!