#include int main(void) { const char *filename = "scr_dump.dmp"; initscr(); cbreak(); mvprintw(3, 10, "This is the main screen........................."); refresh(); scr_dump(filename); erase(); mvprintw(5, 10, "Make the screen bigger, then press a to continue"); endwin(); while (getch() != 'a') continue; scr_restore(filename); doupdate(); mvprintw(5, 10, "This screen is now %dx%d (is the screen bigger?)", LINES, COLS); mvprintw(8, 10, "Press a to exit"); while (getch() != 'a') continue; endwin(); return 0; }