how to print text in color by ncurses without opening a ncurses window
I want to print some output of c++ program in color. I know one way is escape sequences, but it is not
portable. So ncurses looks like better, since it hides the difference of terminals. I am wondering how to use ncurses without generating a new window. You know, once I use init_scr to start ncurse mode, a new window is generated, actually what I want to do is just changing color for some output in the origal terminal where I typed my command. Any idea will be appreciated.