CppChalk is an headerfile which enables us to print colorful text to the standard output.
- Download chalk.h.
- Now here is a code snippet explaining how to implement this header file
#include "chalk.h" // Replace chalk.h with the relative path to the chalk.h header file
int main()
{
Chalk Chalk;
Chalk.red("Hello world");
}- Blue (
Chalk.blue) ๐ฆ - Green (
Chalk.green)๐ฉ - Cyan (
Chalk.cyan) - Red (
Chalk.red) ๐ฅ - Purple (
Chalk.purple) ๐ช - Yellow (
Chalk.yellow) ๐จ - White (
Chalk.white) โฌ - Grey (
Chalk.grey) - Bright blue (
Chalk.brightBlue) - Bright green (
Chalk.brightGreen) - Bright cyan (
Chalk.brightCyan) - Bright red (
Chalk.brightRed) - Bright magenta (
Chalk.brightMagenta) - Bright white (
Chalk.brightWhite) - Background color Blue text color White (
Chalk.bgBlueFgWhite) - Background color Blue text color Black (
Chalk.bgBlueFgBlack) - Background color Blue text color Red (
Chalk.BgBlueFgRed) - Background color Blue text color Grey (
Chalk.BgBlueFgGrey) - Background color Blue text color Green (
Chalk.BgBlueFgGreen) - Background color Blue text color Cyan (
Chalk.BgBlueFgCyan) - Background color Blue text color Magenta (
Chalk.BgBlueFgMagenta) - Background color Green text color Black (
Chalk.bgGreenFgBlack) - Background color Green text color Blue (
Chalk.bgGreenFgBlue) - Background color Green text color LightBlue (
Chalk.bgGreenFgLightBlue) - Background color Green text color Red (
Chalk.bgGreenFgRed) - Background color Green text color Pink (
Chalk.bgGreenFgPink) - Background color Green text color Yellow (
Chalk.bgGreenFgYellow) - Background color Green text color White (
Chalk.bgGreenFgWhite) - Background color LightBlue text color Black (
Chalk.bgLightBlueFgBlack) - Background color LightBlue text color Blue (
Chalk.bgLightBlueFgBlue) - Background color LightBlue text color Green (
Chalk.bgLightBlueFgGreen) - Background color LightBlue text color Red (
Chalk.bgLightBlueFgRed) - Background color LightBlue text color White (
Chalk.bgLightBlueFgWhite) - Background color LightBlue text color LightGreen (
Chalk.bgLightBlueFgLightGreen)
- Checkout the examples to know how to make use of this header file.


