tfel
Loading...
Searching...
No Matches
tfel::utilities::TerminalColors Class Reference

This class contains char sequence corresponding to colors. This enables to write ouput messages in color in the terminal. More...

#include </home/runner/work/tfel/tfel/include/TFEL/Utilities/TerminalColors.hxx>

Static Public Attributes

static constexpr char Black [5] = {033, '[', '3', '0', 'm'}
 char sequence correponding to black.
static constexpr char Red [5] = {033, '[', '3', '1', 'm'}
 char sequence correponding to red.
static constexpr char Green [5] = {033, '[', '3', '2', 'm'}
 char sequence correponding to green.
static constexpr char Yellow [5] = {033, '[', '3', '3', 'm'}
 char sequence correponding to yellow.
static constexpr char Blue [5] = {033, '[', '3', '4', 'm'}
 char sequence correponding to blue.
static constexpr char Purple [5] = {033, '[', '3', '5', 'm'}
 char sequence correponding to purple.
static constexpr char LightBlue [5] = {033, '[', '3', '6', 'm'}
 char sequence correponding to light blue.
static constexpr char White [5] = {033, '[', '3', '7', 'm'}
 char sequence correponding to white.
static constexpr char Reset [4] = {033, '[', 'm', 017}
 char sequence correponding to the reset command. This causes the terminal to go back to its initial state.

Detailed Description

This class contains char sequence corresponding to colors. This enables to write ouput messages in color in the terminal.

Author
Thomas Helfer
Date
26/07/2006

Member Data Documentation

◆ Black

char tfel::utilities::TerminalColors::Black[5] = {033, '[', '3', '0', 'm'}
staticconstexpr

char sequence correponding to black.

static constexpr char Black[5]
char sequence correponding to black.
Definition TerminalColors.hxx:33

◆ Blue

char tfel::utilities::TerminalColors::Blue[5] = {033, '[', '3', '4', 'm'}
staticconstexpr

char sequence correponding to blue.

static constexpr char Blue[5]
char sequence correponding to blue.
Definition TerminalColors.hxx:61

◆ Green

char tfel::utilities::TerminalColors::Green[5] = {033, '[', '3', '2', 'm'}
staticconstexpr

char sequence correponding to green.

cout.write(TerminalColors::Green,sizeof(TerminalColors::Greeb));
static constexpr char Green[5]
char sequence correponding to green.
Definition TerminalColors.hxx:47

◆ LightBlue

char tfel::utilities::TerminalColors::LightBlue[5] = {033, '[', '3', '6', 'm'}
staticconstexpr

char sequence correponding to light blue.

static constexpr char LightBlue[5]
char sequence correponding to light blue.
Definition TerminalColors.hxx:75

◆ Purple

char tfel::utilities::TerminalColors::Purple[5] = {033, '[', '3', '5', 'm'}
staticconstexpr

char sequence correponding to purple.

static constexpr char Purple[5]
char sequence correponding to purple.
Definition TerminalColors.hxx:68

◆ Red

char tfel::utilities::TerminalColors::Red[5] = {033, '[', '3', '1', 'm'}
staticconstexpr

char sequence correponding to red.

static constexpr char Red[5]
char sequence correponding to red.
Definition TerminalColors.hxx:40

◆ Reset

char tfel::utilities::TerminalColors::Reset[4] = {033, '[', 'm', 017}
staticconstexpr

char sequence correponding to the reset command. This causes the terminal to go back to its initial state.

static constexpr char Reset[4]
char sequence correponding to the reset command. This causes the terminal to go back to its initial s...
Definition TerminalColors.hxx:90

◆ White

char tfel::utilities::TerminalColors::White[5] = {033, '[', '3', '7', 'm'}
staticconstexpr

char sequence correponding to white.

static constexpr char White[5]
char sequence correponding to white.
Definition TerminalColors.hxx:82

◆ Yellow

char tfel::utilities::TerminalColors::Yellow[5] = {033, '[', '3', '3', 'm'}
staticconstexpr

char sequence correponding to yellow.

static constexpr char Yellow[5]
char sequence correponding to yellow.
Definition TerminalColors.hxx:54

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