From: Jason S on
I'm getting ready to start my first (useful) C++ program soon, and am
wondering if there's any way to change the style/color of text printed
using std::cout (e.g. italic, bold, green, blue, etc.). I'm programming
on a Mac OS X system if that makes any difference.

Thanks!

Also note, depending on if I can or cannot accomplish this task with
C++, I might just use pure C to write the program.
--
Jason

From: Gordon Burditt on
>I'm getting ready to start my first (useful) C++ program soon, and am
>wondering if there's any way to change the style/color of text printed
>using std::cout (e.g. italic, bold, green, blue, etc.). I'm programming

Text has neither color nor colour.

std::cout may be directed and/or redirected to just about any device
(files, display, printers, network, CD-ROM, etc.) Software packages
such as curses or ncurses may generate data that appears as color
when sent to a display, but this has to be generated for a particular
display.

>on a Mac OS X system if that makes any difference.

It's a generic, language-independent, system-independent problem:
there's no standard way of representing color nor colour in text.
(HTML doesn't really qualify since you can't send HTML directly to
the screen and have it display in color/colour). The output has
to be targetted to the specific device it's going to be sent to.

>Also note, depending on if I can or cannot accomplish this task with
>C++, I might just use pure C to write the program.

Same problem.