[PR #15729] Add support for ITU's T.416 - ODA SGR (38/48) sequence #30717

Open
opened 2026-01-31 09:42:32 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/15729

State: closed
Merged: Yes


This PR adds support for ITU's T.416 - ODA SGR (38/48) colour sequence, which makes use of colon instead of semi-colon as a parameter separator.

  • We use semi-colons as the only parameter separator while sending SGR color sequences to a ConPTY client. This is to keep backward compatibility.
  • In response to DECRQSS query, we have decided to use colons, as the major usecase for such queries are feature detection (whether client supports ODA colours), and tracking the original separator may add too much complexity to the codebase.

Validation Steps Performed

  • Made sure that we are always sending semi-colon separated parameters regardless of whether the original sequence used colons.
  • Made sure that we are always using colons as the parameter separator in a DECRQSS response.
  • Added new tests!

Closes #15706

**Original Pull Request:** https://github.com/microsoft/terminal/pull/15729 **State:** closed **Merged:** Yes --- This PR adds support for **ITU's T.416 - ODA SGR (38/48)** colour sequence, which makes use of colon instead of semi-colon as a parameter separator. - We use semi-colons as the only parameter separator while sending SGR color sequences to a ConPTY client. This is to keep backward compatibility. - In response to `DECRQSS` query, we have decided to use colons, as the major usecase for such queries are feature detection (whether client supports ODA colours), and tracking the original separator may add too much complexity to the codebase. ## Validation Steps Performed - Made sure that we are always sending semi-colon separated parameters regardless of whether the original sequence used colons. - Made sure that we are always using colons as the parameter separator in a `DECRQSS` response. - Added new tests! Closes #15706
claunia added the pull-request label 2026-01-31 09:42:32 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#30717