I am trying to write a C++ application with Clion that makes use of colored console output using ASCII sequences. When I run the program in Clion, the colors are not shown.
For me (windows 10) the solution was
#include
And then:
system(("chcp "s + std::to_string(CP_UTF8)).c_str());
Now all the ANSI sequences work!