]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/echochar.c
ncurses 6.0 - patch 20170930
[ncurses.git] / test / echochar.c
index ef649ca4f87246b188b39a8bc5ac6cebe58e8def..1a3fd7d3a7833d68ef0b8ed9452f71aa7e96d75a 100644 (file)
@@ -26,7 +26,7 @@
  * authorization.                                                           *
  ****************************************************************************/
 /*
  * authorization.                                                           *
  ****************************************************************************/
 /*
- * $Id: echochar.c,v 1.14 2017/09/04 11:48:15 tom Exp $
+ * $Id: echochar.c,v 1.15 2017/09/30 15:42:10 tom Exp $
  *
  * Demonstrate the echochar function (compare to dots.c).
  * Thomas Dickey - 2006/11/4
  *
  * Demonstrate the echochar function (compare to dots.c).
  * Thomas Dickey - 2006/11/4
@@ -103,8 +103,7 @@ main(int argc GCC_UNUSED,
        }
     }
 
        }
     }
 
-    CATCHALL(onsig);
-    initscr();
+    InitAndCatch(initscr(), onsig);
 
     use_colors = has_colors();
     if (use_colors) {
 
     use_colors = has_colors();
     if (use_colors) {