Majoranapp
A C++ library for studying MZM in non-interacting systems
ColorsInfo Class Reference

Colorizing the text. More...

#include <Colors.hpp>

Inheritance diagram for ColorsInfo:

Static Public Member Functions

static std::string Colorize (std::string text, std::string color)
 Add prefix and suffix for color display in Linux terminal. More...
 
static std::string StartColor (std::string color)
 returns selected color More...
 
static std::string StopColor ()
 resets color to default normal More...
 

Detailed Description

Colorizing the text.

Member Function Documentation

◆ Colorize()

static std::string ColorsInfo::Colorize ( std::string  text,
std::string  color 
)
inlinestatic

Add prefix and suffix for color display in Linux terminal.

Parameters
textto color
colorselected color
Returns
std::string of colorized text

◆ StartColor()

static std::string ColorsInfo::StartColor ( std::string  color)
inlinestatic

returns selected color

Parameters
colorto return
Returns
std::string color

◆ StopColor()

static std::string ColorsInfo::StopColor ( )
inlinestatic

resets color to default normal

Returns
std::string return normal

The documentation for this class was generated from the following file: