[PR #17685] Remove SetTextAttributes from the ITerminalApi interface #31325

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

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

State: closed
Merged: Yes


Summary of the Pull Request

The only reason we had the SetTextAttributes method in ITerminalApi
was to allow for conhost to remap the default color attributes when the
VT PowerShell quirk was active. Since that quirk has now been removed,
there's no need for this API anymore.

References and Relevant Issues

The PowerShell quirk was removed in PR #17666.

Validation Steps Performed

I've had to update all the attribute tests in adapterTest to manually
check the expected attributes, since those checks were previously being
handled in a SetTextAttributes mock which no longer exists.

I've also performed some manual tests of the VT attribute operations to
double check that they're still working as expected.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/17685 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request The only reason we had the `SetTextAttributes` method in `ITerminalApi` was to allow for conhost to remap the default color attributes when the VT PowerShell quirk was active. Since that quirk has now been removed, there's no need for this API anymore. ## References and Relevant Issues The PowerShell quirk was removed in PR #17666. ## Validation Steps Performed I've had to update all the attribute tests in adapterTest to manually check the expected attributes, since those checks were previously being handled in a `SetTextAttributes` mock which no longer exists. I've also performed some manual tests of the VT attribute operations to double check that they're still working as expected.
claunia added the pull-request label 2026-01-31 09:46:35 +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#31325