buildkite / terminal-to-html

Converts arbitrary shell output (with ANSI) into beautifully rendered HTML
http://buildkite.github.io/terminal-to-html
MIT License
658 stars 44 forks source link

DECSC & DECRC (save/restore cursor position) implemented. #105

Closed pda closed 1 year ago

pda commented 1 year ago

Implement the DECSC & DECRC (save/restore cursor position) terminal escape sequences. Previously they were ignored.

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: