A simple header only C++ lib that can colorize most object's output with ANSI color codes
To use this header you need a compiler which supports <concepts>.
gcc
10 and clang
10 should both support this.
#include "StreamDye.hpp"
and use StreamDye::printWithColor(Object obj, Stream::Dye::Color color)
to get a string which can easily be output to std::cout
All colors are defined in the header.
To build the sample code, you will need CMake and Make (and as above, c++20 support with support for <concepts>).
mkdir -p build;
cmake ..
make
All binaries will be put into the root of the build directory. For information on what each binary does, read the cpp file it was compiled from.
Please open pull requests to improve this. I will appreciate any contribution.
It is preferred if you open an issue on Github but if you need, email me.