Native code implementation for expanding ANSI escape codes

This commit is contained in:
Kovid Goyal
2022-11-25 17:33:41 +05:30
parent 4d3f3b5e91
commit cfc6bd4da5
4 changed files with 92 additions and 3 deletions

View File

@@ -26,8 +26,6 @@ def ctrl_mask_char(ch: str) -> str:
o = ord(ch)
except Exception:
return ch
if o > 127:
return ch
return chr(o & 0b0011111)