xref: /csrg-svn/lib/libcurses/endwin.c (revision 42653)
12247Sarnold /*
234677Sbostic  * Copyright (c) 1981 Regents of the University of California.
334677Sbostic  * All rights reserved.
434677Sbostic  *
5*42653Sbostic  * %sccs.include.redist.c%
622661Sdist  */
722661Sdist 
822661Sdist #ifndef lint
9*42653Sbostic static char sccsid[] = "@(#)endwin.c	5.4 (Berkeley) 06/01/90";
1034677Sbostic #endif /* not lint */
1122661Sdist 
1222661Sdist /*
132247Sarnold  * Clean things up before exiting
142247Sarnold  *
152247Sarnold  */
162247Sarnold 
172247Sarnold # include	"curses.ext"
182247Sarnold 
endwin()192247Sarnold endwin()
202247Sarnold {
212247Sarnold 	resetty();
222247Sarnold 	_puts(VE);
232247Sarnold 	_puts(TE);
242247Sarnold 	if (curscr) {
252247Sarnold 		if (curscr->_flags & _STANDOUT) {
262247Sarnold 			_puts(SE);
272247Sarnold 			curscr->_flags &= ~_STANDOUT;
282247Sarnold 		}
292247Sarnold 		_endwin = TRUE;
302247Sarnold 	}
312247Sarnold }
32