 |
PhoenixMock
1.8.7
Tools to split/merge/print mock used in Phoenix
|
Go to the documentation of this file.
46 printDelire(
"Print a lot of color in the same text but I think this is quite useless");
49 printAllCol(
"col all Print text of full",
'=',
"Some right text");
50 printAll(
"cout all Print text of full",
'=',
"Some right text");
51 printAllCerr(
"Cerr Print text of full",
'=',
"Some right text");
52 printAllColCerr(
"Cerr col all Print text of full",
'=',
"Some right text");
54 std::vector<PTerminalStyle> vecStyle;
55 vecStyle.push_back(
NONE);
56 vecStyle.push_back(
BRIGHT);
58 vecStyle.push_back(
BLINK);
61 vecStyle.push_back(
BLACK);
62 vecStyle.push_back(
RED);
63 vecStyle.push_back(
GREEN);
64 vecStyle.push_back(
YELLOW);
65 vecStyle.push_back(
BLUE);
66 vecStyle.push_back(
PURPLE);
67 vecStyle.push_back(
CYAN);
68 vecStyle.push_back(
WHITE);
69 vecStyle.push_back(
BBLACK);
70 vecStyle.push_back(
BRED);
71 vecStyle.push_back(
BGREEN);
73 vecStyle.push_back(
BBLUE);
75 vecStyle.push_back(
BCYAN);
76 vecStyle.push_back(
BWHITE);
78 for(std::vector<PTerminalStyle>::iterator it(vecStyle.begin()); it != vecStyle.end(); ++it){
81 std::cout <<
"With string : " <<
str << std::endl;
83 std::cout << std::endl;
91 int main(
int argc,
char** argv){
void clearTerminal()
fonction qui permet d'éffacer le terminal
std::string termBWhite()
affiche le fond du terminal en blanc
std::string termBRed()
affiche le fond du terminal en rouge
short unsigned int getNbColTerminal()
fonction qui renvoie le nombre de colonnes du terminal
std::string termBlue()
affiche le terminal blue
std::string termBYellow()
affiche le fond du terminal en jaune
void printAll(const std::string &strLeft, char ch, const std::string &strRight)
fonction qui écrit un texte dans la console en l'alignant à droite (ne prend pas en compte la couleur...
std::string termPurple()
affiche le terminal violet
std::string termBCyan()
affiche le fond du terminal en cyan
void printColorCerr(const std::string &str, PTerminalStyle color)
fonction qui affiche un texte coloré dans le terminal
void printAllColCerr(const std::string &strLeft, char ch, const std::string &strRight)
fonction qui écrit un texte dans la console d'erreur en l'alignant à droite (prend en compte la coule...
std::string termBGreen()
affiche le fond du terminal en vert
std::string termPositive()
affiche le terminal positif
void testStringColor()
Test the color.
std::string termDefault()
affiche le terminal par défaut
std::string termRed()
affiche le terminal rouge
std::string colorString(const std::string &str, PTerminalStyle color)
fonction qui permet de colorier du texte dans une string
std::string termBlink()
affiche le terminal clignotant
std::string termYellow()
affiche le terminal jaune
void printAllCol(const std::string &strLeft, char ch, const std::string &strRight)
fonction qui écrit un texte dans la console en l'alignant à droite (prend en compte la couleur du tex...
std::string termBright()
affiche le terminal brillant
std::string termUnderlined()
affiche le terminal souligné
std::string termGreen()
affiche le terminal vert
void textColorCerr(const char *color)
focntion qui permet de changer la couleur du texte dan le terminal (sortie d'erreur)
void printAllCerr(const std::string &strLeft, char ch, const std::string &strRight)
fonction qui écrit un texte dans la console d'erreur en l'alignant à droite (ne prend pas en compte l...
void textColor(const char *color)
focntion qui permet de changer la couleur du texte dan le terminal
std::string termWhite()
affiche le terminal blanc
short unsigned int getNbRowTerminal()
fonction qui renvoie le nombre de lignes du terminal
std::string termBBlue()
affiche le fond du terminal en bleu
std::string termBBlack()
affiche le fond du terminal en noir
#define phoenix_assert(isOk)
std::string termBlack()
affiche le terminal noir
std::string termCyan()
affiche le terminal cyan
int main(int argc, char **argv)
void printColor(const std::string &str, PTerminalStyle color)
fonction qui affiche un texte coloré dans le terminal
std::string termNegative()
affiche le terminal négatif
void printDelire(const std::string &str)
fonction qui utilise toutes les couleur du terminal pour afficher un message
std::string termBPurple()
affiche le fond du terminal en violet