/* Hello, The following code produces a window full of "¤" (see attached capture) characters with 6.2 wheras 6.1 produces a blank window. Thanks */ #include #include #include char KeyWait(void) { /* ------- attend qu'une touche soit frappée. Ramène le caractère (si !=0) ou ExitKey */ int ch; do { ch = getch(); } while (ch == ERR); return (char) ch; } /* KeyWait */ int main(int argc, char *argv[]) { // ---- module principal initscr(); start_color(); // Color pairs init_pair(1, COLOR_GREEN, COLOR_BLACK); clear(); WINDOW *pWindow; PANEL *pPanel; if ((pWindow = newwin(23, 78, 1, 1)) == NULL) { fputs("\nSaveWindow: no more memory\n", stderr); abort(); } // add it to the panel deck => => fonction 1 coupable des ¤ pPanel = new_panel(pWindow); // set colour => fonction 2 coupable des ¤ wbkgd(pWindow, COLOR_PAIR(1)); update_panels(); doupdate(); KeyWait(); endwin(); }