#include #include #include #include int main(int argc, char *argv) { char a; WINDOW *w; w=initscr(); nonl(); leaveok(curscr,1); noecho(); wclear(w); move(0,0); wrefresh(w); raw(); fcntl(0,F_SETFL,O_NDELAY | O_RDONLY); while (!read(0,(char*)&a,1)) ; noraw(); nocrmode(); nl(); echo(); endwin(); printf("\n\r"); fcntl(0,F_SETFL,O_RDONLY); }