xref: /original-bsd/lib/libcurses/endwin.c (revision 81f6297c)
1 /*
2  * Clean things up before exiting
3  *
4  * @(#)endwin.c	1.2 (Berkeley) 05/01/85
5  */
6 
7 # include	"curses.ext"
8 
9 endwin()
10 {
11 	resetty();
12 	_puts(VE);
13 	_puts(TE);
14 	if (curscr) {
15 		if (curscr->_flags & _STANDOUT) {
16 			_puts(SE);
17 			curscr->_flags &= ~_STANDOUT;
18 		}
19 		_endwin = TRUE;
20 	}
21 }
22