putwin - dump window to a file
#include <curses.h> int putwin(WINDOW *win, FILE *filep);
Refer to getwin().