Is it possible to show the terminal a ConPTY instance is interacting with? #16791
Answered
by
zadjii-msft
David Jozwik (Unit2795)
asked this question in
Q&A
|
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? |
Answered by
zadjii-msft
Mar 1, 2024
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. |
2 replies
Answer selected by
Unit2795
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.