How can I write colored text to the console with C++? That is, how can I write different text with different colors?
Here cplusplus example is an example how to use colors in console.