NCURSES_SP_NAME(endwin) (NCURSES_SP_DCL0) { T((T_CALLED("endwin()"))); if (SP_PARM) { SP_PARM->_endwin = TRUE; SP_PARM->_mouse_wrap(SP_PARM); _nc_screen_wrap(); _nc_mvcur_wrap(); /* wrap up cursor addressing */ returnCode(reset_shell_mode()); } returnCode(ERR); }
endwin(void) { T((T_CALLED("endwin()"))); if (SP) { SP->_endwin = TRUE; SP->_mouse_wrap(SP); _nc_screen_wrap(); _nc_mvcur_wrap(); /* wrap up cursor addressing */ returnCode(reset_shell_mode()); } returnCode(ERR); }