Skip to content

A basic C++ library for adding colors to console output

License

Notifications You must be signed in to change notification settings

moeenn/console-colors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

console colors

A very basic library for adding colors to console output.

Usage

#include "./libs/colors/colors.hpp"
#include <iostream>

int main() {
  std::cout << colors::FRED << " FRED " << colors::RS << "\t\t"
            << colors::FGRN << " FGRN " << colors::RS << "\t\t"
            << colors::FYEL << " FYEL " << colors::RS << "\t\t"
            << colors::FBLE << " FBLE " << colors::RS << "\t\t"
            << colors::FMAG << " FMAG " << colors::RS << "\t\t"
            << colors::FCYN << " FCYN " << colors::RS << "\t\t"
            << colors::FWHT << " FWHT " << colors::RS << "\n"

            << colors::BRED << " BRED " << colors::RS << "\t\t"
            << colors::BGRN << " BGRN " << colors::RS << "\t\t"
            << colors::BYEL << " BYEL " << colors::RS << "\t\t"
            << colors::BBLE << " BBLE " << colors::RS << "\t\t"
            << colors::BMAG << " BMAG " << colors::RS << "\t\t"
            << colors::BCYN << " BCYN " << colors::RS << "\t\t"
            << colors::BWHT << " BWHT " << colors::RS << "\n";
}

Screenshot

"screenshot"

Compilation

The library includes a header file and a source file, both located in src/libs/colors. Make sure the source file is included when building your project. See CMakeLists.txt for more information.

About

A basic C++ library for adding colors to console output

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published