I'm writing a C++ program that runs in the terminal. It would be absolutely wonderful to send some of the characters to the terminal in color instead of the usual black.
Of course C++ does not have built-in color support...
Instead, what I am hoping to do, for instance, is send an ASCII or Unicode sequence to the terminal as the program runs, saying (for instance), ok now we want the current text to be red, ok now we want the current text to be blue, etc., etc.
There must be an ASCII or Unicode sequence that tells the terminal to switch colors as the program executes. Can somebody point me to a useful example about this?
Of course C++ does not have built-in color support...
Instead, what I am hoping to do, for instance, is send an ASCII or Unicode sequence to the terminal as the program runs, saying (for instance), ok now we want the current text to be red, ok now we want the current text to be blue, etc., etc.
There must be an ASCII or Unicode sequence that tells the terminal to switch colors as the program executes. Can somebody point me to a useful example about this?