Is it possible to show the terminal a ConPTY instance is interacting with? #16791
-
I connect a ConPTY instance to a Powershell process. Instead of directing the output from ConPTY to another Powershell terminal to show the output, is it possible to directly show the child Powershell terminal and watch as ConPTY interacts with it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
No...ish. Definitely not with the public APIs. However, I'm pretty sure we had some tools in this repo for manually setting up conpty in a way that would let you see the conhost. I'm thinking of https://github.com/microsoft/terminal/blame/main/src/tools/vtpipeterm/main.cpp specifically. However, last I worked with that tool was probably 5 years ago so I'm not sure that even works with the current state of the console anymore. |
Beta Was this translation helpful? Give feedback.
No...ish. Definitely not with the public APIs.
However, I'm pretty sure we had some tools in this repo for manually setting up conpty in a way that would let you see the conhost. I'm thinking of https://github.com/microsoft/terminal/blame/main/src/tools/vtpipeterm/main.cpp specifically. However, last I worked with that tool was probably 5 years ago so I'm not sure that even works with the current state of the console anymore.