I have a command line program, which outputs logging to the screen.
I want error lines to show up in red. Is there some special character codes I can output to switc
Ultimately you need to call SetConsoleTextAttribute. You can get a console screen buffer handle from GetStdHandle.