2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
11 * Test of the curses package, to make sure I really understand how to use it.
14 #include <afsconfig.h>
15 #include <afs/param.h>
17 #if defined(HAVE_NCURSES_H)
19 #elif defined(HAVE_CURSES_H)
23 #include "AFS_component_version_number.c"
36 scrollok(stdscr, TRUE);
38 addstr("This is my first curses string ever!\n");
40 box(stdscr, '|', '-');
42 addstr("This is a standout string\n");
47 box addstr("Enter a string and a number: ");
49 scanw(stdscr, "%s %d", str, &i);
50 wprintw(stdscr, "String was '%s', number was %d\n", str, i);