Skip to content

A C++ header file πŸ“‚ to print colorful texts 🌈🌟.

License

Notifications You must be signed in to change notification settings

Sam-Varghese/CppChalk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

36 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


demo


CppChalk is an headerfile which enables us to print colorful text to the standard output.


Usage


  • 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");
}

Supported colors


  • 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)

Examples


  • Checkout the examples to know how to make use of this header file.

Thankyou

About

A C++ header file πŸ“‚ to print colorful texts 🌈🌟.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages