[Guidance] getting VT sequences without ENABLE_VIRTUAL_TERMINAL_PROCESSING enabled #2035
Labels
Area-Interop
Communication between processes
Issue-Docs
It's a documentation issue that really should be on MicrosoftDocs/Console-Docs
Issue-Question
For questions or discussion
Needs-Attention
The core contributors need to come back around and look at this ASAP.
Needs-Tag-Fix
Doesn't match tag requirements
Product-Conpty
For console issues specifically related to conpty
This is part one of a harder question, but I need to get over a basic hump first. I need to give a child process a pty as it's standard output, even though the parent may not have a tty (in Windows parlance, a console) itself. You can assume the parent has no
stdin
/stdout
/stderr
. Maybe it's a network daemon.What I am finding is that even if I write something simple (
"hello from child"
) to the child'sstdout
handle, in the parent, when I read off the pipe end, I get:The parent doesn't know how to process any of that, because the parent isn't necessarily a terminal emulator. And the child might not even be a console application for all we know, it could be sending house-cat GIFs to
stdout
. Not our business.The guidance sought is: how do I coerce the code below such that the parent gets exactly the text
"hello from child"
fromReadFile(pipe_in)
. Maybe something silly, but I've run out of ideas except to ask.This question is in furtherance to finding some elegant solution WSL#3279.
[n.b. In the example, the parent does have a console, but just for caveman debugging purposes. If you prefer, imagine the parent's
WriteFile(out...
is debugging out a socket. Or that there are no writes at all in the parent, and I'm setting breakpoints.]The text was updated successfully, but these errors were encountered: