(name suggested by an AI)
ColorC is an easy-to-use, single-header C/C++ library for printing rich text to the terminal
To install ColorC, download the library's header colorc.h
here And add it to your C/C++ project
Then, inside of your C/C++ file, add this code snippet:
#include "colorc.h"
And you're good to go!
The demo.c
file is an demo file showing you how to use ColorC, check it out to learn ColorC
ColorC supports 8 colors for background and foreground. These colors are :
- Black
- Red
- Green
- Yellow
- Blue
- Magenta
- Cyan
- White
It also supports 7 styles (some of them are not supported everywhere though) The styles are :
- Bold
- Dim
- Italic
- Underline
- Blink
- Framed
- Encircled