2 * This test was written by Alexander V. Lukyanov to demonstrate difference
3 * between ncurses 4.1 and SVR4 curses
5 * $Id: firstlast.c,v 1.4 2005/04/16 16:34:05 tom Exp $
11 fill(WINDOW *w, const char *str)
15 for (s = str; *s; s++) {
16 if (waddch(w, UChar(*s)) == ERR) {
25 main(int argc GCC_UNUSED,
26 char *argv[]GCC_UNUSED)
28 WINDOW *large, *small;
32 large = newwin(20, 60, 2, 10);
33 small = newwin(10, 30, 7, 25);
36 fill(large, "LargeWindow");
42 mvwaddstr(small, 5, 5, " Test <place to change> String ");
49 mvwaddstr(small, 5, 5, " Test <***************> String ");
60 /* test 3: clrtoeol */
66 waddstr(small, " clrtoeol>");
73 /* test 4: clrtobot */
79 waddstr(small, " clrtobot>");
88 ExitProgram(EXIT_SUCCESS);