Switch from ConhostConnection to the official ConPTY API #1504

Closed
opened 2026-01-30 22:29:01 +00:00 by claunia · 1 comment
Owner

Originally created by @DHowett-MSFT on GitHub (Jun 4, 2019).

Making the switch from spawning conhost directly to using CreatePseudoConsole and otherwise hosting a pseudoconsole session affords us a number of benefits.

  • Fixes Command prompt goes black after awaking from sleep (#1090)
  • Isolates Windows Terminal's understanding of conhost's internals
  • Allows us to CreateProcess the shell directly and track its exit independent from that of the pseudoconsole host
    • which allows us to manage the shell and the pseudoconsole host in separate jobs
Originally created by @DHowett-MSFT on GitHub (Jun 4, 2019). * Requires #1130 Making the switch from spawning conhost directly to using `CreatePseudoConsole` and otherwise [hosting a pseudoconsole session](https://docs.microsoft.com/en-us/windows/console/creating-a-pseudoconsole-session) affords us a number of benefits. * Fixes #1090 * Isolates Windows Terminal's understanding of conhost's internals * Allows us to `CreateProcess` the shell directly and track its exit independent from that of the pseudoconsole host * which allows us to manage the shell and the pseudoconsole host in separate jobs
Author
Owner

@ghost commented on GitHub (Nov 26, 2019):

:tada:This issue was addressed in #3461, which has now been successfully released as Windows Terminal Preview v0.7.3291.0.🎉

Handy links:

@ghost commented on GitHub (Nov 26, 2019): :tada:This issue was addressed in #3461, which has now been successfully released as `Windows Terminal Preview v0.7.3291.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v0.7.3291.0) * [Store Download](https://www.microsoft.com/store/apps/9n0dx20hk701?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1504