I would like to write a Console class that can output coloured text to the console.
So I can do something like (basically a wrapper for printf):
Console::Print( "This is a non-coloured message\n" );
Console::Warning( "This is a YELLOW warning message\n" );
Console::Error( "This is a RED error message\n" );
How would I print different coloured text to the Windows Console?
Check out this guide. I would make a custom manipulator so I could do something like:
Here‘s a small guide on how to implement your own manipulator.
A quick code example: