I've redirected stdout
of a child process spawned with CreateProcess
to a pipe. It works fine except that, as far as I can tell, no information about color changes are coming through. The child process is using SetConsoleTextAttribute
to change the text color--is it possible to detect this through the pipe and, if so, how?
I'm ultimately displaying the output in a RichEdit
control and I would like to capture the color information if at all possible.
This is in C with the Win32 API on XP and Vista.