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.3 2001/09/15 21:46:34 tom Exp $
11 fill(WINDOW
*w
, const char *str
)
15 for (s
= str
; *s
; s
++) {
16 if (waddch(w
, *s
) == ERR
) {
27 char *argv
[]GCC_UNUSED
)
29 WINDOW
*large
, *small
;
33 large
= newwin(20, 60, 2, 10);
34 small
= newwin(10, 30, 7, 25);
37 fill(large
, "LargeWindow");
43 mvwaddstr(small
, 5, 5, " Test <place to change> String ");
50 mvwaddstr(small
, 5, 5, " Test <***************> String ");
61 /* test 3: clrtoeol */
67 waddstr(small
, " clrtoeol>");
74 /* test 4: clrtobot */
80 waddstr(small
, " clrtobot>");
89 ExitProgram(EXIT_SUCCESS
);