2 /* This work is copyrighted. See COPYRIGHT.OLD & COPYRIGHT.NEW for *
3 * details. If they are missing then this copy is in violation of *
4 * the copyright conditions. */
9 ** The routine endwin().
14 #include "curses.priv.h"
26 T(("endwin() called"));
30 if (change_scroll_region)
31 putp(tparm(change_scroll_region, 0, lines - 1));
33 mvcur(-1, -1, lines - 1, 0);
38 if (SP->_coloron == TRUE)
41 if (curscr && (curscr->_attrs != A_NORMAL))
42 vidattr(curscr->_attrs = A_NORMAL);
49 return(reset_shell_mode());