[PR #7143] Add support for the "crossed-out" graphic rendition attribute #26853

Closed
opened 2026-01-31 09:18:31 +00:00 by claunia · 0 comments
Owner

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

State: closed
Merged: Yes


This PR adds support for the ANSI crossed-out graphic rendition
attribute, which is enabled by the SGR 9 escape sequence.

  • Support for the escape sequences and storage of the attribute was
    originally added in #2917.
  • Support for drawing the strikethrough effect in the grid line renderer
    was added in #7107.

Since the majority of the code required for this attribute had already
been implemented, it was just a matter of activating the
GridLines::Strikethrough style in the Renderer::s_GetGridlines
method when the CrossedOut attribute was set.

VALIDATION

There were already some unit tests in place in VtRendererTest and the
ScreenBufferTests, but I've also now extended the SGR tests in
AdapterTest to cover this attribute.

I've manually confirmed the first test case from #6205 now works as
expected in both conhost and Terminal.

Closes #6205

**Original Pull Request:** https://github.com/microsoft/terminal/pull/7143 **State:** closed **Merged:** Yes --- This PR adds support for the ANSI _crossed-out_ graphic rendition attribute, which is enabled by the `SGR 9` escape sequence. * Support for the escape sequences and storage of the attribute was originally added in #2917. * Support for drawing the strikethrough effect in the grid line renderer was added in #7107. Since the majority of the code required for this attribute had already been implemented, it was just a matter of activating the `GridLines::Strikethrough` style in the `Renderer::s_GetGridlines` method when the `CrossedOut` attribute was set. VALIDATION There were already some unit tests in place in `VtRendererTest` and the `ScreenBufferTests`, but I've also now extended the SGR tests in `AdapterTest` to cover this attribute. I've manually confirmed the first test case from #6205 now works as expected in both conhost and Terminal. Closes #6205
claunia added the pull-request label 2026-01-31 09:18:31 +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#26853