ncurses, windows, and colors
I had a few questions about ncurses and how it handles windows and colors.
I was practicing programming using the ncurses and I can't figure out a few things.
My first problem is when I make a new window and than I try to print something to the stdscr, the window I made looses it's borders. Why is that?
Second problem is I don't really understand colors and when you're supposed to refresh and to what window. If you do something like this:
and you don't have a window you get a black background and a blue foreground. But when I made a window the only thing that had a black background was the window border and the text in the window also had a black background and a blue forground. I'm guessing this is because I'm not refreshing right?
init_pair(1, COLOR_BLUE, COLOR_BLACK);