add help sections and vt100 stripper

This commit is contained in:
ed
2021-08-08 02:47:42 +02:00
parent 228f71708b
commit 953183f16d
3 changed files with 106 additions and 31 deletions

View File

@@ -58,6 +58,9 @@ except:
return struct.unpack(f.decode("ascii"), *a, **ka)
ansi_re = re.compile("\033\\[[^m]*m")
surrogateescape.register_surrogateescape()
FS_ENCODING = sys.getfilesystemencoding()
if WINDOWS and PY2: