[PR #3282] [MERGED] Manipulate Xterm256Engine's extended attr state properly #25300

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/3282
Author: @DHowett-MSFT
Created: 10/22/2019
Status: Merged
Merged: 10/24/2019
Merged by: @DHowett-MSFT

Base: masterHead: dev/duhowett/exten


📝 Commits (2)

  • 5fad96c Manipulate Xterm256Engine's extended attr state properly
  • 1b0ebb3 Add a test for extended attributes

📊 Changes

2 files changed (+104 additions, -1 deletions)

View changed files

📝 src/host/ut_host/VtRendererTests.cpp (+103 -0)
📝 src/renderer/vt/Xterm256Engine.cpp (+1 -1)

📄 Description

We should be clearing the bits when they're different, not just always
setting them.

Fixes #3281.

The tests should have caught this. I'll send in more tests.

PR Checklist

  • Closes Feature Request (#3281)
  • CLA signed
  • Tests added/passed
  • Requires documentation to be updated
  • I'm riding the core train

Validation Steps Performed

Replaced conhost on my system, tried vim's terminal which does support those SGRs.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/3282 **Author:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Created:** 10/22/2019 **Status:** ✅ Merged **Merged:** 10/24/2019 **Merged by:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Base:** `master` ← **Head:** `dev/duhowett/exten` --- ### 📝 Commits (2) - [`5fad96c`](https://github.com/microsoft/terminal/commit/5fad96c3e1c93a7f17a45d16d65362c002f74f96) Manipulate Xterm256Engine's extended attr state properly - [`1b0ebb3`](https://github.com/microsoft/terminal/commit/1b0ebb308ff43d14042bffb2824389b5590bd238) Add a test for extended attributes ### 📊 Changes **2 files changed** (+104 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/host/ut_host/VtRendererTests.cpp` (+103 -0) 📝 `src/renderer/vt/Xterm256Engine.cpp` (+1 -1) </details> ### 📄 Description We should be clearing the bits when they're different, not just always setting them. Fixes #3281. The tests should have caught this. I'll send in more tests. ## PR Checklist * [x] Closes #3281 * [x] CLA signed * [ ] Tests added/passed * [ ] Requires documentation to be updated * [x] I'm riding the core train ## Validation Steps Performed Replaced conhost on my system, tried vim's terminal which does support those SGRs. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:08:37 +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#25300