#include int main() { printf("TRUE %d\r\n", TRUE); printf("FALSE %d\r\n", FALSE); printf("OK %d\r\n", OK); printf("ERR %d\r\n", ERR); initscr(); addstr("testing is_wintouched()\n"); printw("is_wintouched(stdscr) %d\n", is_wintouched(stdscr)); printw("is_wintouched(NULL) %d\n", is_wintouched(NULL)); addstr("testing is_linetouched()\n"); printw("is_linetouched(stdscr,0) %d\n", is_linetouched(stdscr,0)); printw("is_linetouched(NULL,0) %d\n", is_linetouched(NULL,0)); refresh(); napms(2000); addstr("testing is_linetouched()\n"); printw("is_linetouched(stdscr,0) %d\n", is_linetouched(stdscr,0)); printw("is_linetouched(stdscr,999) %d\n", is_linetouched(stdscr,999)); refresh(); napms(3000); endwin(); }