X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=test%2Fdots_xcurses.c;h=b640c2b612677224bec116fb965e904f085614a7;hb=22b110664918b4fba48ae4237bafb81621bc5f5b;hp=a2aa8b92661b6a82efd2267c4267fda39f9bd4a1;hpb=460005b642d978c6d4b48810803514bd36a6245b;p=ncurses.git diff --git a/test/dots_xcurses.c b/test/dots_xcurses.c index a2aa8b92..b640c2b6 100644 --- a/test/dots_xcurses.c +++ b/test/dots_xcurses.c @@ -30,13 +30,13 @@ /* * Author: Thomas E. Dickey * - * $Id: dots_xcurses.c,v 1.22 2020/05/10 00:32:33 tom Exp $ + * $Id: dots_xcurses.c,v 1.24 2020/08/29 16:22:03 juergen Exp $ * * A simple demo of the wide-curses interface used for comparison with termcap. */ #include -#if !defined(_WIN32) +#if !defined(_NC_WINDOWS) #include #endif @@ -244,7 +244,8 @@ main(int argc, char *argv[]) set_colors(fg = z, bg); } else { set_colors(fg, bg = z); - napms(s_option); + if (s_option) + napms(s_option); } } else { if (ranf() <= 0.01) { @@ -253,7 +254,8 @@ main(int argc, char *argv[]) } else { attr_off(WA_REVERSE, NULL); } - napms(s_option); + if (s_option) + napms(s_option); } } wch[0] = (wchar_t) p;