Implement the DECSC & DECRC (save/restore cursor position) terminal escape sequences. Previously they were ignored.
DECSC (DEC Save Cursor) is ESC 7, and it saves the current cursor position to memory.
DECRC (DEC Restore Cursor) is ESC 8, and it restores the saved cursor position by jumping back to that position.
I believe there exists tools/libraries in the private and/or public npm ecosystem that use DECSC/DECRC as part of rewriting earlier lines in a terminal to update their status. This fixes terminal-to-html rendering of those scenarios.
Implement the
DECSC
&DECRC
(save/restore cursor position) terminal escape sequences. Previously they were ignored.DECSC
(DEC Save Cursor) isESC 7
, and it saves the current cursor position to memory.DECRC
(DEC Restore Cursor) isESC 8
, and it restores the saved cursor position by jumping back to that position.I believe there exists tools/libraries in the private and/or public npm ecosystem that use DECSC/DECRC as part of rewriting earlier lines in a terminal to update their status. This fixes terminal-to-html rendering of those scenarios.
Related: