1 /* gleaned from a web-search, shows a bug combining scanw and implicit scroll.
3 * From: bayern@morpheus.cis.yale.edu
5 * $Id: testscanw.c,v 1.5 1997/09/20 14:16:20 tom Exp $
10 int main(int argc, char *argv[])
13 long *response = &badanswer;
16 scrollok(stdscr, TRUE);
21 trace(TRACE_UPDATE|TRACE_CALLS);
24 if (isdigit(*argv[1]))
25 move(atoi(argv[1]), 0);
26 else if (!strcmp(argv[1], "-k"))
32 printw("Enter a number (0 to quit):\n");
34 scanw("%20ld", response); /* yes, it's a pointer */