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

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

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

State: closed
Merged: Yes


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
**Original Pull Request:** https://github.com/microsoft/terminal/pull/12434 **State:** closed **Merged:** Yes --- 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✅
claunia added the pull-request label 2026-01-31 09:32:23 +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#29036