c++ console output color code example
Example 1: c++ console color
SetConsoleTextAttribute(console, ((int)background * 16) + (int)forground);
Example 2: c++ colored output
Black \033[0;30m
Red \033[0;31m
Green \033[0;32m
Yellow \033[0;33m
Blue \033[0;34m
Purple \033[0;35m
Cyan \033[0;36m
White \033[0;37m