[PR #12434] [MERGED] XtermEngine: Explicitly emit cursor state on the first frame #29031

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/12434
Author: @lhecker
Created: 2/8/2022
Status: Merged
Merged: 2/8/2022
Merged by: @DHowett

Base: mainHead: dev/lhecker/12401-fix-blinking


📝 Commits (2)

  • 653594b XtermEngine: Explicitly emit cursor state on the first frame
  • 2c3debc Address feedback

📊 Changes

4 files changed (+58 additions, -104 deletions)

View changed files

📝 .github/actions/spelling/expect/expect.txt (+1 -0)
📝 src/host/ut_host/VtRendererTests.cpp (+39 -86)
📝 src/renderer/vt/XtermEngine.cpp (+8 -17)
📝 src/renderer/vt/XtermEngine.hpp (+10 -1)

📄 Description

This commit fixes an issue, where we failed to emit a DECTCEM sequence to hide
the cursor if it was hidden before XtermEngine's first frame was finalized.
Even in such cases we need to emit a DECTCEM sequence
in order to ensure we're in a consistent state.

PR Checklist

Validation Steps Performed

  • Added test
  • Run #12401's repro steps around 30 times

🔄 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/12434 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 2/8/2022 **Status:** ✅ Merged **Merged:** 2/8/2022 **Merged by:** [@DHowett](https://github.com/DHowett) **Base:** `main` ← **Head:** `dev/lhecker/12401-fix-blinking` --- ### 📝 Commits (2) - [`653594b`](https://github.com/microsoft/terminal/commit/653594bf6d036477028dd88d7e98cef4f28805ff) XtermEngine: Explicitly emit cursor state on the first frame - [`2c3debc`](https://github.com/microsoft/terminal/commit/2c3debc5cf5640453a7b37fb9466f776556f2a33) Address feedback ### 📊 Changes **4 files changed** (+58 additions, -104 deletions) <details> <summary>View changed files</summary> 📝 `.github/actions/spelling/expect/expect.txt` (+1 -0) 📝 `src/host/ut_host/VtRendererTests.cpp` (+39 -86) 📝 `src/renderer/vt/XtermEngine.cpp` (+8 -17) 📝 `src/renderer/vt/XtermEngine.hpp` (+10 -1) </details> ### 📄 Description This commit fixes an issue, where we failed to emit a DECTCEM sequence to hide the cursor if it was hidden before XtermEngine's first frame was finalized. Even in such cases we need to emit a DECTCEM sequence in order to ensure we're in a consistent state. ## PR Checklist * [x] Closes #12401 * [x] I work here * [x] Tests added/passed ## Validation Steps Performed * Added test✅ * Run #12401's repro steps around 30 times✅ --- <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:32:22 +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#29031