C color text in terminal applications in windows
Since you want a C and Windows specific solution, I’d recommend using the SetConsoleTextAttribute() function in the Win32 API. You’ll need to grab a handle to the console, and then pass it with the appropriate attributes. As a simple example: /* Change console text color, then restore it back to normal. */ #include <stdio.h> #include … Read more