aboutsummaryrefslogtreecommitdiff
path: root/contrib/ncurses/test/testscanw.c
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2007-01-20 08:21:19 +0000
committerRong-En Fan <rafan@FreeBSD.org>2007-01-20 08:21:19 +0000
commit01b82453a3d0c6d76d4afc340c07cfc2be4a6b7a (patch)
treedf00ad30f8b41a9a1e39a44809868282aa36affb /contrib/ncurses/test/testscanw.c
parent4a1a95108dd76c4259fe6c37c4471f7969b17983 (diff)
downloadsrc-01b82453a3d0c6d76d4afc340c07cfc2be4a6b7a.tar.gz
src-01b82453a3d0c6d76d4afc340c07cfc2be4a6b7a.zip
Remove files that are no longer exist.vendor/ncurses/5.6-20061217
Approved by: delphij
Notes
Notes: svn path=/vendor/ncurses/dist/; revision=166133 svn path=/vendor/ncurses/5.6-20061217/; revision=166126; tag=vendor/ncurses/5.6-20061217
Diffstat (limited to 'contrib/ncurses/test/testscanw.c')
-rw-r--r--contrib/ncurses/test/testscanw.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/contrib/ncurses/test/testscanw.c b/contrib/ncurses/test/testscanw.c
deleted file mode 100644
index a1c25b9860bd..000000000000
--- a/contrib/ncurses/test/testscanw.c
+++ /dev/null
@@ -1,39 +0,0 @@
-/* gleaned from a web-search, shows a bug combining scanw and implicit scroll.
- * Date: 1997/03/17
- * From: bayern@morpheus.cis.yale.edu
- *
- * $Id: testscanw.c,v 1.8 2001/09/15 21:41:45 tom Exp $
- */
-#include <test.priv.h>
-#include <ctype.h>
-
-int
-main(int argc, char *argv[])
-{
- long badanswer = 1;
- long *response = &badanswer;
-
- initscr();
- scrollok(stdscr, TRUE);
- idlok(stdscr, TRUE);
- echo();
-
-#if 0
- trace(TRACE_UPDATE | TRACE_CALLS);
-#endif
- while (argc > 1) {
- if (isdigit(UChar(*argv[1])))
- move(atoi(argv[1]), 0);
- else if (!strcmp(argv[1], "-k"))
- keypad(stdscr, TRUE);
- argc--, argv++;
- }
-
- while (badanswer) {
- printw("Enter a number (0 to quit):\n");
- printw("--> ");
- scanw("%20ld", response); /* yes, it's a pointer */
- }
- endwin();
- ExitProgram(EXIT_SUCCESS);
-}