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 should save more than cursor position #107

Open pda opened 1 year ago

pda commented 1 year ago

As of #105 we support DECSC/DECRC by saving/restoring the cursor X/Y position.

However to be strictly correct, there's more state to save/restore: See https://github.com/microsoft/terminal/discussions/14699#discussioncomment-4722279

I haven't seen this matter in the wild, so it's not high priority, but it's bound to at least mess up some colours one day in the future, so making a note here.