SUNphi  1.0
TextFormat.hpp File Reference

Define format to print on the terminal. More...

Go to the source code of this file.

Enumerations

enum  SUNphi::TextColor : char {
  BLACK ='0', RED ='1', GREEN ='2', BROWN ='3',
  BLUE ='4', PURPLE ='5', CYAN ='6', GREY ='7',
  DEFAULT ='9'
}
 Identifier of the various supported colors.
 
enum  SUNphi::TextStyle : char {
  RESET ='0', BOLD ='1', DIM ='2', ITALIC ='3',
  UNDERLINE ='4', BLINK ='5', REVERSE ='7', HIDDEN ='8',
  STRIKETHROUGH ='9'
}
 Identifier of the various supported styles.
 

Variables

static constexpr char SUNphi::TEXT_CHANGE_COLOR_HEAD []
 First part of the string which change color. More...
 
static constexpr char SUNphi::TEXT_CHANGE_COLOR_TAIL []
 Last part of the string whcih change color. More...
 
static constexpr char SUNphi::TEXT_CHANGE_STYLE_HEAD []
 First part of the string which change style. More...
 
static constexpr char SUNphi::TEXT_CHANGE_STYLE_TAIL []
 Last part of the string whcih change style. More...
 

Detailed Description

Define format to print on the terminal.

See https://www.growingwiththeweb.com/2015/05/colours-in-gnome-terminal.html

Definition in file TextFormat.hpp.

Variable Documentation

constexpr char SUNphi::TEXT_CHANGE_COLOR_HEAD[]
static
Initial value:
=
"\x1b[3"

First part of the string which change color.

Definition at line 14 of file TextFormat.hpp.

constexpr char SUNphi::TEXT_CHANGE_COLOR_TAIL[]
static
Initial value:
=
"m"

Last part of the string whcih change color.

Definition at line 19 of file TextFormat.hpp.

constexpr char SUNphi::TEXT_CHANGE_STYLE_HEAD[]
static
Initial value:
=
"\x1b["

First part of the string which change style.

Definition at line 36 of file TextFormat.hpp.

constexpr char SUNphi::TEXT_CHANGE_STYLE_TAIL[]
static
Initial value:
=
"m"

Last part of the string whcih change style.

Definition at line 41 of file TextFormat.hpp.