Skip to content

Latest commit

 

History

History
61 lines (51 loc) · 5.72 KB

File metadata and controls

61 lines (51 loc) · 5.72 KB

ConsoleColor

This example demonstrates the use of WriteConsole and SetConsoleTextAttribute functions.

Sources

ConsoleColor.cpp

CMakeLists.txt

Generate and build

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.

Output

       ████████████████████████████████████████████████████████████
     ██████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░██████
     ██████████████████████████████░░░░░░░░░░░░░░░░░░░░░░████░░████████
     ██████████████████████████████░░░░░░░░░░░░░░░░░░░░░░████░░██████████
     ██████████████████████████████░░░░░░░░░░░░░░░░░░░░░░████░░████████████
     ██████████████████████████████░░░░░░░░░░░░░░░░░░░░░░████░░████████████
     ██████████████████████████████░░░░░░░░░░░░░░░░░░░░░░████░░████████████
     ███████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░█████████████
     ██████████████████████████████████████████████████████████████████████
     ██████████████████████████████████████████████████████████████████████
     ██████████████████████████▀▄▄▄▄▀███████▀▄▄▄▄▀█████████████████████████
     ███████████████████████████▀▀▀▀███████▀▀▀▀▀███████████████████████████
     ██████████████████████████      ▀████       ▀█████████████████████████
     ███████████             ▐         ▀▀         ▐              ██████████
     █████████               ▐   ███   ▌▐   ███   ▐               █████████
     █████████               ▐   █▄▄▌  ▌▐  ▐▄▄█   ▐               █████████
     █████████                ▐▄  ▀▀ ▄▀  ▀▄ ▀▀  ▄▀                █████████
     █████████                  ▀▀▄▄▀      ▀▀▄▄▀                  █████████
     █████████                                                    █████████
     █████████                 █▄                ▌                █████████
     █████████                  ▌▀▀▄          ▄██                 █████████
     █████████                  ▐   ▀▀▄▄▄▄▄▄█▀ █▌                 █████████
     █████████                   ▐            ▄█                  █████████
     █████████                    █          ▄█                   █████████
     █████████                     ▀▄       █▀                    █████████
     █████████                       ▀▄▄▄▄██▀                     █████████
     █████████                                                    █████████
     █████████                                                    █████████
     █████████                                                    █████████
     █████████                                                    █████████
     █████████                                                    █████████
       ██████████████████████████████████████████████████████████████████
                                     Gammasoft
     More than thirty years of passion for high technology especially in development
     (c++, c#, objective-c, ...).