Skip to main content
deleted 38 characters in body
Source Link
Uduse
  • 1.6k
  • 1
  • 14
  • 20

try my header here for a quick and easy way to color text: Aedi's Color HeaderAedi's Color Header


# Escape-Sequence-Color-Header Color Your Output in Unix using C++!!
##Text Attribute Options: ATTRIBUTES_OFF, BOLD, UNDERSCORE, BLINK, REVERSE_VIDEO, CONCEALED
##Color Options: BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE
##Format:

General Format, include value you want in $variable$

COLOR_$Foreground_Color$_$Background_Color$ COLOR_$Text_Attribute$_$Foreground_Color$_$Background_Color$ COLOR_NORMAL // To set color to default 

e.g.

COLOR_BLUE_BLACK // Leave Text Attribute Blank if no Text Attribute appied COLOR_UNDERSCORE_YELLOW_RED COLOR_NORMAL 

##Usage: Just use to stream the color you want before outputting text and use again to set the color to normal after outputting text.
cout << COLOR_BLUE_BLACK << "TEXT" << COLOR_NORMAL << endl; cout << COLOR_BOLD_YELLOW_CYAN << "TEXT" << COLOR_NORMAL << endl; 

try my header here for a quick and easy way to color text: Aedi's Color Header


# Escape-Sequence-Color-Header Color Your Output in Unix using C++!!
##Text Attribute Options: ATTRIBUTES_OFF, BOLD, UNDERSCORE, BLINK, REVERSE_VIDEO, CONCEALED
##Color Options: BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE
##Format:

General Format, include value you want in $variable$

COLOR_$Foreground_Color$_$Background_Color$ COLOR_$Text_Attribute$_$Foreground_Color$_$Background_Color$ COLOR_NORMAL // To set color to default 

e.g.

COLOR_BLUE_BLACK // Leave Text Attribute Blank if no Text Attribute appied COLOR_UNDERSCORE_YELLOW_RED COLOR_NORMAL 

##Usage: Just use to stream the color you want before outputting text and use again to set the color to normal after outputting text.
cout << COLOR_BLUE_BLACK << "TEXT" << COLOR_NORMAL << endl; cout << COLOR_BOLD_YELLOW_CYAN << "TEXT" << COLOR_NORMAL << endl; 

try my header here for a quick and easy way to color text: Aedi's Color Header


# Escape-Sequence-Color-Header Color Your Output in Unix using C++!!
##Text Attribute Options: ATTRIBUTES_OFF, BOLD, UNDERSCORE, BLINK, REVERSE_VIDEO, CONCEALED
##Color Options: BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE
##Format:

General Format, include value you want in $variable$

COLOR_$Foreground_Color$_$Background_Color$ COLOR_$Text_Attribute$_$Foreground_Color$_$Background_Color$ COLOR_NORMAL // To set color to default 

e.g.

COLOR_BLUE_BLACK // Leave Text Attribute Blank if no Text Attribute appied COLOR_UNDERSCORE_YELLOW_RED COLOR_NORMAL 

##Usage: Just use to stream the color you want before outputting text and use again to set the color to normal after outputting text.
cout << COLOR_BLUE_BLACK << "TEXT" << COLOR_NORMAL << endl; cout << COLOR_BOLD_YELLOW_CYAN << "TEXT" << COLOR_NORMAL << endl; 
small fix
Source Link
Uduse
  • 1.6k
  • 1
  • 14
  • 20

try my header here for a quick and easy way to color text: Aedi's Color Header


# Escape-Sequence-Color-Header Color Your Output in Unix using C++!!
##Text Attribute Options: ATTRIBUTES_OFF, BOLD, UNDERSCORE, BLINK, REVERSE_VIDEO, CONCEALED
##Color Options: BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE
##Format:

General Format, include value you want in $variable$

COLOR_$Foreground_Color$_$Background_Color$ COLOR_$Text_Attribute$_$Foreground_Color$_$Background_Color$ COLOR_NORMAL // To set color to default 

e.g.

COLOR_BLUE_BLACK // Leave Text Attribute Blank if no Text Attribute appied COLOR_UNDERSCORE_YELLOW_RED COLOR_NORMAL 

##Usage: Just use to stream the color you want before outputting text and use again to set the color to normal after outputting text.
cout << COLOR_BLUE_BLACK << "TEXT" << COLOR_NORMAL << endl; cout << COLOR_BOLD_YELLOW_CYAN << "TEXT" << COLOR_NORMAL << endl; 

try my header here for a quick and easy way to color text: Aedi's Color Header

try my header here for a quick and easy way to color text: Aedi's Color Header


# Escape-Sequence-Color-Header Color Your Output in Unix using C++!!
##Text Attribute Options: ATTRIBUTES_OFF, BOLD, UNDERSCORE, BLINK, REVERSE_VIDEO, CONCEALED
##Color Options: BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE
##Format:

General Format, include value you want in $variable$

COLOR_$Foreground_Color$_$Background_Color$ COLOR_$Text_Attribute$_$Foreground_Color$_$Background_Color$ COLOR_NORMAL // To set color to default 

e.g.

COLOR_BLUE_BLACK // Leave Text Attribute Blank if no Text Attribute appied COLOR_UNDERSCORE_YELLOW_RED COLOR_NORMAL 

##Usage: Just use to stream the color you want before outputting text and use again to set the color to normal after outputting text.
cout << COLOR_BLUE_BLACK << "TEXT" << COLOR_NORMAL << endl; cout << COLOR_BOLD_YELLOW_CYAN << "TEXT" << COLOR_NORMAL << endl; 
Source Link
Uduse
  • 1.6k
  • 1
  • 14
  • 20

try my header here for a quick and easy way to color text: Aedi's Color Header