PhoenixPresentation  2.0.0
Set of cmake function to automate presentation generation
phoenix_color.cpp File Reference
#include "phoenix_color.h"
+ Include dependency graph for phoenix_color.cpp:

Go to the source code of this file.

Functions

void clearTerminal ()
 fonction qui permet d'éffacer le terminal More...
 
std::string termBBlack ()
 affiche le fond du terminal en noir More...
 
std::string termBBlue ()
 affiche le fond du terminal en bleu More...
 
std::string termBCyan ()
 affiche le fond du terminal en cyan More...
 
std::string termBGreen ()
 affiche le fond du terminal en vert More...
 
std::string termBlack ()
 affiche le terminal noir More...
 
std::string termBlink ()
 affiche le terminal clignotant More...
 
std::string termBlue ()
 affiche le terminal blue More...
 
std::string termBPurple ()
 affiche le fond du terminal en violet More...
 
std::string termBRed ()
 affiche le fond du terminal en rouge More...
 
std::string termBright ()
 affiche le terminal brillant More...
 
std::string termBWhite ()
 affiche le fond du terminal en blanc More...
 
std::string termBYellow ()
 affiche le fond du terminal en jaune More...
 
std::string termCyan ()
 affiche le terminal cyan More...
 
std::string termDefault ()
 affiche le terminal par défaut More...
 
std::string termGreen ()
 affiche le terminal vert More...
 
std::string termNegative ()
 affiche le terminal négatif More...
 
std::string termPositive ()
 affiche le terminal positif More...
 
std::string termPurple ()
 affiche le terminal violet More...
 
std::string termRed ()
 affiche le terminal rouge More...
 
std::string termUnderlined ()
 affiche le terminal souligné More...
 
std::string termWhite ()
 affiche le terminal blanc More...
 
std::string termYellow ()
 affiche le terminal jaune More...
 

Function Documentation

◆ clearTerminal()

void clearTerminal ( )

fonction qui permet d'éffacer le terminal

Definition at line 120 of file phoenix_color.cpp.

120  {
121  printf("\033[H\033[2J");
122 }

Referenced by testStringColor().

+ Here is the caller graph for this function:

◆ termBBlack()

std::string termBBlack ( )

affiche le fond du terminal en noir

Returns
string de modification du terminal

Definition at line 82 of file phoenix_color.cpp.

82 {return "\033[40m";}

Referenced by testStringColor().

+ Here is the caller graph for this function:

◆ termBBlue()

std::string termBBlue ( )

affiche le fond du terminal en bleu

Returns
string de modification du terminal

Definition at line 102 of file phoenix_color.cpp.

102 {return "\033[44m";}

Referenced by testStringColor().

+ Here is the caller graph for this function:

◆ termBCyan()

std::string termBCyan ( )

affiche le fond du terminal en cyan

Returns
string de modification du terminal

Definition at line 112 of file phoenix_color.cpp.

112 {return "\033[46m";}

Referenced by testStringColor().

+ Here is the caller graph for this function:

◆ termBGreen()

std::string termBGreen ( )

affiche le fond du terminal en vert

Returns
string de modification du terminal

Definition at line 92 of file phoenix_color.cpp.

92 {return "\033[42m";}

Referenced by testStringColor().

+ Here is the caller graph for this function:

◆ termBlack()

std::string termBlack ( )

affiche le terminal noir

Returns
string de modification du terminal

Definition at line 42 of file phoenix_color.cpp.

42 {return "\033[30m";}

Referenced by testStringColor().

+ Here is the caller graph for this function:

◆ termBlink()

std::string termBlink ( )

affiche le terminal clignotant

Returns
string de modification du terminal

Definition at line 27 of file phoenix_color.cpp.

27 {return "\033[5m";}

Referenced by testStringColor().

+ Here is the caller graph for this function:

◆ termBlue()

std::string termBlue ( )

affiche le terminal blue

Returns
string de modification du terminal

Definition at line 62 of file phoenix_color.cpp.

62 {return "\033[34m";}

Referenced by testStringColor().

+ Here is the caller graph for this function:

◆ termBPurple()

std::string termBPurple ( )

affiche le fond du terminal en violet

Returns
string de modification du terminal

Definition at line 107 of file phoenix_color.cpp.

107 {return "\033[45m";}

Referenced by testStringColor().

+ Here is the caller graph for this function:

◆ termBRed()

std::string termBRed ( )

affiche le fond du terminal en rouge

Returns
string de modification du terminal

Definition at line 87 of file phoenix_color.cpp.

87 {return "\033[41m";}

Referenced by testStringColor().

+ Here is the caller graph for this function:

◆ termBright()

std::string termBright ( )

affiche le terminal brillant

Returns
string de modification du terminal

Definition at line 17 of file phoenix_color.cpp.

17 {return "\033[1m";}

Referenced by testStringColor().

+ Here is the caller graph for this function:

◆ termBWhite()

std::string termBWhite ( )

affiche le fond du terminal en blanc

Returns
string de modification du terminal

Definition at line 117 of file phoenix_color.cpp.

117 {return "\033[47m";}

Referenced by testStringColor().

+ Here is the caller graph for this function:

◆ termBYellow()

std::string termBYellow ( )

affiche le fond du terminal en jaune

Returns
string de modification du terminal

Definition at line 97 of file phoenix_color.cpp.

97 {return "\033[43m";}

Referenced by testStringColor().

+ Here is the caller graph for this function:

◆ termCyan()

std::string termCyan ( )

affiche le terminal cyan

Returns
string de modification du terminal

Definition at line 72 of file phoenix_color.cpp.

72 {return "\033[36m";}

Referenced by testStringColor().

+ Here is the caller graph for this function:

◆ termDefault()

std::string termDefault ( )

affiche le terminal par défaut

Returns
string de modification du terminal

Definition at line 12 of file phoenix_color.cpp.

12 {return "\033[0m";}

Referenced by Option::checkArgument(), and testStringColor().

+ Here is the caller graph for this function:

◆ termGreen()

std::string termGreen ( )

affiche le terminal vert

Returns
string de modification du terminal

Definition at line 52 of file phoenix_color.cpp.

52 {return "\033[32m";}

Referenced by testStringColor().

+ Here is the caller graph for this function:

◆ termNegative()

std::string termNegative ( )

affiche le terminal négatif

Returns
string de modification du terminal

Definition at line 32 of file phoenix_color.cpp.

32 {return "\033[7m";}

Referenced by testStringColor().

+ Here is the caller graph for this function:

◆ termPositive()

std::string termPositive ( )

affiche le terminal positif

Returns
string de modification du terminal

Definition at line 37 of file phoenix_color.cpp.

37 {return "\033[27m";}

Referenced by testStringColor().

+ Here is the caller graph for this function:

◆ termPurple()

std::string termPurple ( )

affiche le terminal violet

Returns
string de modification du terminal

Definition at line 67 of file phoenix_color.cpp.

67 {return "\033[35m";}

Referenced by testStringColor().

+ Here is the caller graph for this function:

◆ termRed()

std::string termRed ( )

affiche le terminal rouge

Returns
string de modification du terminal

Definition at line 47 of file phoenix_color.cpp.

47 {return "\033[31m";}

Referenced by Option::checkArgument(), and testStringColor().

+ Here is the caller graph for this function:

◆ termUnderlined()

std::string termUnderlined ( )

affiche le terminal souligné

Returns
string de modification du terminal

Definition at line 22 of file phoenix_color.cpp.

22 {return "\033[4m";}

Referenced by testStringColor().

+ Here is the caller graph for this function:

◆ termWhite()

std::string termWhite ( )

affiche le terminal blanc

Returns
string de modification du terminal

Definition at line 77 of file phoenix_color.cpp.

77 {return "\033[37m";}

Referenced by testStringColor().

+ Here is the caller graph for this function:

◆ termYellow()

std::string termYellow ( )

affiche le terminal jaune

Returns
string de modification du terminal

Definition at line 57 of file phoenix_color.cpp.

57 {return "\033[33m";}

Referenced by testStringColor().

+ Here is the caller graph for this function: