Welcome to another useless library that i created because i had few free minutes.
What this library does, is:
$ echo "\033[01;33mFunny Coloring"
Funny Coloring
Just believe, that 'Funny Coloring' is in bold yellow - trust.
Just run
$ mkdir build
$ cd build
$ cmake .. -DCMAKE_INSTALL_PREFIX="${HOME}/.local/" # Path to your local folder
$ cmake --build . --target install
if you want debug
or
$ mkdir build
$ cd build
$ cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="${HOME}/.local/" # Path to your local folder
$ cmake --build . --target install
if u want release
In CmakeLists.txt
add:
find_package(smollor)
...
target_link_libraries(your_program smollor::smollor)
Then just include in your program where you want colors on terminal:
#include <iostream>
#include <smol_color.h>
using namespace smol;
int main() {
std::cout << color{foreground::yellow, form::bold} << "Funny Coloring" << smol::endl;
return 0;
}
This should return yellow Funny Coloring
but you never know...