milupHPC documentation
Classes | Enumerations | Functions
Color Namespace Reference

Colors for output formatting. More...

Classes

class  Modifier
 Modify (color) of terminal output. More...
 

Enumerations

enum  Code {
  FG_DEFAULT = 39 , FG_BLACK = 30 , FG_RED = 31 , FG_GREEN = 32 ,
  FG_YELLOW = 33 , FG_BLUE = 34 , FG_MAGENTA = 35 , FG_CYAN = 36 ,
  FG_LIGHT_GRAY = 37 , FG_DARK_GRAY = 90 , FG_LIGHT_RED = 91 , FG_LIGHT_GREEN = 92 ,
  FG_LIGHT_YELLOW = 93 , FG_LIGHT_BLUE = 94 , FG_LIGHT_MAGENTA = 95 , FG_LIGHT_CYAN = 96 ,
  FG_WHITE = 97 , BG_RED = 41 , BG_GREEN = 42 , BG_BLUE = 44 ,
  BG_DEFAULT = 49
}
 

Functions

std::ostream & operator<< (std::ostream &os, const Color::Modifier &mod)
 

Detailed Description

Colors for output formatting.

Enumeration Type Documentation

◆ Code

enum Color::Code
Enumerator
FG_DEFAULT 
FG_BLACK 

Foreground: distro's default.

FG_RED 

Foreground: black.

FG_GREEN 

Foreground: red.

FG_YELLOW 

Foreground: green.

FG_BLUE 

Foreground: yellow.

FG_MAGENTA 

Foreground: blue.

FG_CYAN 

Foreground: magenta.

FG_LIGHT_GRAY 

Foreground: cyan.

FG_DARK_GRAY 

Foreground: light gray.

FG_LIGHT_RED 

Foreground: dark gray.

FG_LIGHT_GREEN 

Foreground: light red.

FG_LIGHT_YELLOW 

Foreground: light green.

FG_LIGHT_BLUE 

Foreground: light yellow.

FG_LIGHT_MAGENTA 

Foreground: light blue.

FG_LIGHT_CYAN 

Foreground: light magenta.

FG_WHITE 

Foreground: light cyan.

BG_RED 

Foreground: white.

BG_GREEN 

Background: red.

BG_BLUE 

Background: green.

BG_DEFAULT 

Background: blue.

Definition at line 6 of file color.h.

Function Documentation

◆ operator<<()

std::ostream & Color::operator<< ( std::ostream &  os,
const Color::Modifier &  mod 
)
Parameters
os
mod
Returns

Definition at line 5 of file logger.cpp.


milupHPC - Color Namespace Reference
Generated on Wed Aug 31 2022 12:16:53 by Doxygen 1.9.3