* authorization. *
****************************************************************************/
/*
- * $Id: savescreen.c,v 1.32 2017/04/15 17:33:50 tom Exp $
+ * $Id: savescreen.c,v 1.35 2017/09/29 23:42:22 tom Exp $
*
* Demonstrate save/restore functions from the curses library.
* Thomas Dickey - 2007/7/14
}
move(0, 0);
} else {
- endwin();
+ exit_curses();
fprintf(stderr, "Cannot open \"%s\"\n", fill_by);
ExitProgram(EXIT_FAILURE);
}
* Use the last file as the initial/current screen.
*/
if (last < 0) {
- endwin();
+ exit_curses();
printf("No screen-dumps given\n");
ExitProgram(EXIT_FAILURE);
}
which = last;
if (load_screen(files[which]) == ERR) {
- endwin();
+ exit_curses();
printf("Cannot load screen-dump %s\n", files[which]);
ExitProgram(EXIT_FAILURE);
}
continue;
}
if (!done) {
- attr_t attr = (A_REVERSE | (attr_t) COLOR_PAIR(color * COLORS));
+ chtype attr = (A_REVERSE | (chtype) COLOR_PAIR(color * COLORS));
chtype ch2 = (altchars ? MyMarker : '#');
move(y, x);
AddCh(ch2 | attr);
#else
int
-main(int argc, char *argv[])
+main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED)
{
printf("This program requires the screen-dump functions\n");
ExitProgram(EXIT_FAILURE);