This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: textcolor() for cygwin?

Thanks Ronald,

It works great!


#include <ncurses.h>
int main(void)
    initscr();         // init ncurses
    start_color(); // Init color mode
    init_pair(1, COLOR_RED, COLOR_BLACK);
    printw("Colour red");

"Ronald Landheer-Cieslak" <> wrote in message
> On Tue, 29 Apr 2003, Hans wrote:
> > This must be a simple question but for some reason my google search
> > turned up nothing useful. I would like to change the textcolor using C,
> > is there any simple way of doing this? I don't need screen control or
> > anything fancy, just change some text strings to red,
> Actually, changing the color of a displayed text is pretty fancy, if you
> ask me! How are you going to change the color on a B/W terminal? How are
> you going to know your terminal is B/W if you don't want to do something
> in the least bit fancy?
> Anyway, try using curs_color(3X) from ncurses - that should help and does
> most of the fancy stuff for you :)
> rlc
> BTW: ncurses is in the Cygwin net distri, before anyone asks..

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]