X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=test%2Fdots_curses.c;h=95ddb93155c98df3a8f0e715d702bca5facd9074;hb=214f159cd8c0ea4fba47beb249379d0da2dfb8ca;hp=4754e98ab2bbac13701fd164bdae3d4318caedc8;hpb=460005b642d978c6d4b48810803514bd36a6245b;p=ncurses.git diff --git a/test/dots_curses.c b/test/dots_curses.c index 4754e98a..95ddb931 100644 --- a/test/dots_curses.c +++ b/test/dots_curses.c @@ -30,13 +30,13 @@ /* * Author: Thomas E. Dickey * - * $Id: dots_curses.c,v 1.19 2020/05/10 00:31:59 tom Exp $ + * $Id: dots_curses.c,v 1.21 2020/08/29 16:22:03 juergen Exp $ * * A simple demo of the curses interface used for comparison with termcap. */ #include -#if !defined(_WIN32) +#if !defined(_NC_WINDOWS) #include #endif @@ -206,7 +206,8 @@ main(int argc, char *argv[]) attron(COLOR_PAIR(mypair(fg, bg))); } else { set_colors(fg, bg = z); - napms(s_option); + if (s_option) + napms(s_option); } } else { if (ranf() <= 0.01) { @@ -215,7 +216,8 @@ main(int argc, char *argv[]) } else { attroff(A_REVERSE); } - napms(s_option); + if (s_option) + napms(s_option); } } AddCh(p);