[PR #18681] Fix a ConPTY startup hang with 0-param DA1 responses #31589

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

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

State: closed
Merged: Yes


Since WaitForDA1 would wait until _deviceAttributes is non-zero,
we must ensure it's actually non-zero at the end of this handler,
even if there are no parameters.

Validation Steps Performed

  • Mod the Terminal DA1 to be \x1b[?6c. No hang
  • Mod the Terminal DA1 to be \x1b[?61c. No hang
**Original Pull Request:** https://github.com/microsoft/terminal/pull/18681 **State:** closed **Merged:** Yes --- Since `WaitForDA1` would wait until `_deviceAttributes` is non-zero, we must ensure it's actually non-zero at the end of this handler, even if there are no parameters. ## Validation Steps Performed * Mod the Terminal DA1 to be `\x1b[?6c`. No hang ✅ * Mod the Terminal DA1 to be `\x1b[?61c`. No hang ✅
claunia added the pull-request label 2026-01-31 09:48:14 +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#31589