Parser for multi cursor escape code

This commit is contained in:
Kovid Goyal
2025-08-22 15:45:44 +05:30
parent e6c1597834
commit 8f5dc42a61
5 changed files with 200 additions and 7 deletions

View File

@@ -299,10 +299,14 @@ def multicell_command(payload: str) -> None:
write(f'{OSC}{TEXT_SIZE_CODE};{m.rstrip(":")};{text}\a')
def screen_multi_cursor(rest: str) -> None:
write(f'{CSI}>{rest.strip()} q')
def replay(raw: str) -> None:
specials = frozenset({
'draw', 'set_title', 'set_icon', 'set_dynamic_color', 'set_color_table_color', 'select_graphic_rendition',
'process_cwd_notification', 'clipboard_control', 'shell_prompt_marking', 'multicell_command',
'process_cwd_notification', 'clipboard_control', 'shell_prompt_marking', 'multicell_command', 'screen_multi_cursor',
})
for line in raw.splitlines():
if line.strip() and not line.startswith('#'):