I have a linked list of nodes which described below:
class ColorGr
{
    string word;
    string color;
    ColorGr *next;
}
I have a string and I want to search for "word"s in it and colorize them with "color".
I tried ncurses to do that but the problem is with using windows. I don't want the screen being refreshed.
I want to print the string in output just like a cout function. My code is in c++ language and I work with gcc in linux. 
what is the best way to do this?