HIPO  4.3.0
High Performance Output data format for experimental physics
color.h File Reference

ANSI terminal color and decoration classes for styled output. More...

#include <iostream>
#include <ostream>
#include <sstream>
#include <string>
#include <type_traits>
#include <vector>

Go to the source code of this file.

Classes

class  ascii::Color256
 256-color ANSI terminal color wrapper. More...
 
class  ascii::RGB
 24-bit true-color RGB terminal color. More...
 
class  ascii::Decoration
 ANSI text decoration (bold, italic, underline, etc.). More...
 
class  ascii::Foreground
 ANSI foreground color escape sequence generator. More...
 
class  ascii::Background
 ANSI background color escape sequence generator. More...
 

Namespaces

 ascii
 

Enumerations

enum class  ascii::Color {
  ascii::BLACK = 30 , ascii::RED = 31 , ascii::GREEN = 32 , ascii::YELLOW = 33 ,
  ascii::BLUE = 34 , ascii::MAGENTA = 35 , ascii::CYAN = 36 , ascii::WHITE = 37 ,
  ascii::BRIGHT_BLACK = 90 , ascii::BRIGHT_RED = 91 , ascii::BRIGHT_GREEN = 92 , ascii::BRIGHT_YELLOW = 93 ,
  ascii::BRIGHT_BLUE = 94 , ascii::BRIGHT_MAGENTA = 95 , ascii::BRIGHT_CYAN = 96 , ascii::BRIGHT_WHITE = 97 ,
  ascii::RESET = -1
}
 Standard and bright ANSI terminal colors. More...
 

Detailed Description

ANSI terminal color and decoration classes for styled output.

Provides support for standard colors, 256-color mode, true color (RGB), and text decorations (bold, italic, underline, etc.).

Reference: https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797 https://talyian.github.io/ansicolors/

Definition in file color.h.