ANSI codes (e.g. colours) are not enabled by default on Windows cmd console.
To enable, add this to the beginning of main:
#ifdef _WIN32 HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE); DWORD dwMode; GetConsoleMode(hOut, &dwMode); SetConsoleMode(hOut, dwMode | ENABLE_VIRTUAL_TERMINAL_PROCESSING); #endif