Refactor VT parser for more speed

No longer copy bytes into a separate buffer, instead parse them in place
in the read buffer
This commit is contained in:
Kovid Goyal
2023-11-05 10:24:00 +05:30
parent 23bb2e1b67
commit 6205fb32fd
19 changed files with 1037 additions and 1015 deletions

View File

@@ -78,6 +78,10 @@ def select_graphic_rendition(*a: int) -> None:
write(f'{CSI}{";".join(map(str, a))}m')
def deccara(*a: int) -> None:
write(f'{CSI}{";".join(map(str, a))}$r')
def screen_cursor_to_column(c: int) -> None:
write(f'{CSI}{c}G')