Ok here's a simple Console Application I made to test the RedirectStandardOutput
of the Process.StartInfo
.
foreach (c In [Enum].GetValues(GetType(ConsoleColor))
{
Console.ForegroundColor = c
Console.WriteLine("Test")
}
And below is the application result.
So as we can see the colors show beautifully on the console.
However, when I read the StandardOutput.BaseStream
there's no color information, no ANSI codes, no nothing.
How do I capture the color information on the redirected stream?