This example demonstrates the use of WriteConsole and SetConsoleTextAttribute functions.
To build this project, open "Console" and type following lines:
mkdir build && cd build
cmake ..
start ConsoleColor.sln
Select "ConsoleColor" project and type Ctrl+F5 to build and run it.
████████████████████████████████████████████████████████████
██████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░██████
██████████████████████████████░░░░░░░░░░░░░░░░░░░░░░████░░████████
██████████████████████████████░░░░░░░░░░░░░░░░░░░░░░████░░██████████
██████████████████████████████░░░░░░░░░░░░░░░░░░░░░░████░░████████████
██████████████████████████████░░░░░░░░░░░░░░░░░░░░░░████░░████████████
██████████████████████████████░░░░░░░░░░░░░░░░░░░░░░████░░████████████
███████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░█████████████
██████████████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████████████
██████████████████████████▀▄▄▄▄▀███████▀▄▄▄▄▀█████████████████████████
███████████████████████████▀▀▀▀███████▀▀▀▀▀███████████████████████████
██████████████████████████ ▀████ ▀█████████████████████████
███████████ ▐ ▀▀ ▐ ██████████
█████████ ▐ ███ ▌▐ ███ ▐ █████████
█████████ ▐ █▄▄▌ ▌▐ ▐▄▄█ ▐ █████████
█████████ ▐▄ ▀▀ ▄▀ ▀▄ ▀▀ ▄▀ █████████
█████████ ▀▀▄▄▀ ▀▀▄▄▀ █████████
█████████ █████████
█████████ █▄ ▌ █████████
█████████ ▌▀▀▄ ▄██ █████████
█████████ ▐ ▀▀▄▄▄▄▄▄█▀ █▌ █████████
█████████ ▐ ▄█ █████████
█████████ █ ▄█ █████████
█████████ ▀▄ █▀ █████████
█████████ ▀▄▄▄▄██▀ █████████
█████████ █████████
█████████ █████████
█████████ █████████
█████████ █████████
█████████ █████████
██████████████████████████████████████████████████████████████████
Gammasoft
More than thirty years of passion for high technology especially in development
(c++, c#, objective-c, ...).