Skip to content

Colored and formated text generator for std::ostream on C++20.

Notifications You must be signed in to change notification settings

SuicideCatt/LogColors

Repository files navigation

LogColors

Colored and formated text generator for std::ostream on C++20.

Usage

#define USE_SCT_LC
#include <LogColors.hpp>
#include <iostream>
// ...
using LC::fg;
using LC::bg;
using LC::form;
std::cout << fg::blue << form::bold << "Blue bold text!" << LC::off << '\n';
std::cout << bg::yellow << form::italic << "Italic text on yellow background!" << LC::off << '\n';

std::cout << fg::rgb(255) << bg::rgb(255, 192, 203) << "White text on pink background!" << LC::off << '\n';

Download or Install

Supported colors

  • 16 colors

    16 colors exemple

  • 256 colors

    256 colors exemple

  • RGB colors

TODO

  • Add RGB colors
  • Add std::wostream support
  • Add RPM package
  • Add Arch package

About

Colored and formated text generator for std::ostream on C++20.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published