make __cputchar visible, the back compatibility stuff uses it
[unix-history] / usr / src / lib / libcurses / endwin.c
/*
* Copyright (c) 1981 Regents of the University of California.
* All rights reserved.
*
* %sccs.include.redist.c%
*/
#ifndef lint
static char sccsid[] = "@(#)endwin.c 5.5 (Berkeley) %G%";
#endif /* not lint */
/*
* Clean things up before exiting
*
*/
# include "curses.ext"
endwin()
{
resetty();
_puts(VE);
_puts(TE);
if (curscr) {
if (curscr->_flags & _STANDOUT) {
_puts(SE);
curscr->_flags &= ~_STANDOUT;
}
_endwin = TRUE;
}
}