ANSI color escape sequences are always parsed in the qtcreator terminal. On Windows, the ANSI sequences are only parsed by cmd.exe or PowerShell when the registry DWORD key HKEY_CURRENT_USER\Console\VirtualTerminalLevel is set to 1. An example application to produce a yellow colored output with ANSI color escape sequences is given below.
#include <iostream> #include <string>int main(int argc, char *argv[]) { std::cout << "\033[33mThis is yellow\033[0m" << std::endl; return 0; }