ConPTY: Optimize SGR sequences by combining them into a single sequence #4205

Open
opened 2026-01-30 23:40:57 +00:00 by claunia · 0 comments
Owner

Originally created by @zadjii-msft on GitHub (Oct 1, 2019).

I wonder if there's an optimization we can take later that'll let us compress SGRs together when we know we're writing a bunch. \x1b[40m+\x1b[31m+\x1b[4m+\x1b[3m => \x1b[40;31;4;3m?

Originally posted by @DHowett-MSFT in https://github.com/microsoft/terminal/pull/2917

Originally created by @zadjii-msft on GitHub (Oct 1, 2019). I wonder if there's an optimization we can take later that'll let us compress SGRs together when we know we're writing a bunch. `\x1b[40m`+`\x1b[31m`+`\x1b[4m`+`\x1b[3m` => `\x1b[40;31;4;3m`? _Originally posted by @DHowett-MSFT in https://github.com/microsoft/terminal/pull/2917_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#4205