Hi,
I am testing a console program written in C++. I want to adjust the output so that instead of the standard white text, I can make certain words appear in different colors. So for example, the following string will output each word in (for example) the following colours:
This - appears as blue text
is - appears as red text
a - appears as green text
test - appears as yellow text.
Can anyone tell me what header files would I need to include doing this under the console? Alternatively, could you point me to a program that might have some useful code that achieves a similar effect? Note, I am not using X windows at all for this project.
I am testing a console program written in C++. I want to adjust the output so that instead of the standard white text, I can make certain words appear in different colors. So for example, the following string will output each word in (for example) the following colours:
This is a test
This - appears as blue text
is - appears as red text
a - appears as green text
test - appears as yellow text.
Can anyone tell me what header files would I need to include doing this under the console? Alternatively, could you point me to a program that might have some useful code that achieves a similar effect? Note, I am not using X windows at all for this project.