/** title: Teste do uso com NCurses ficheiro: ncursestst.c autor: Alberto versao de: 2001.04.06 **/ #include int main(void) { // Declare a character variable but INT (because curses want it) int c; // The first three initialization asked from curses initscr(); cbreak(); noecho(); // Note that printf DOES NOT work printw("Press 'y' to quit...\n"); // Look while c not 'y' while((c = getch())!='y') printw("%c is not a 'y'...\n",c); // Make echo for shell, again endwin(); }