/****************************************************************************
- * Copyright (c) 2014 Free Software Foundation, Inc. *
+ * Copyright (c) 2014,2017 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
/*
* Author: Thomas E. Dickey
*
- * $Id: dots_curses.c,v 1.3 2014/08/09 22:28:42 tom Exp $
+ * $Id: dots_curses.c,v 1.5 2017/09/30 15:41:17 tom Exp $
*
* A simple demo of the curses interface used for comparison with termcap.
*/
double r;
double c;
- CATCHALL(onsig);
-
srand((unsigned) time(0));
- initscr();
+ InitAndCatch(initscr(), onsig);
if (has_colors()) {
start_color();
for (fg = 0; fg < COLORS; fg++) {
napms(1);
}
}
- addch((chtype) p);
+ AddCh(p);
refresh();
++total_chars;
}