make __cputchar visible, the back compatibility stuff uses it
[unix-history] / usr / src / lib / libcurses / endwin.c
CommitLineData
6e1c93d0 1/*
2f14f200
KB
2 * Copyright (c) 1981 Regents of the University of California.
3 * All rights reserved.
4 *
c07973a2 5 * %sccs.include.redist.c%
6e1c93d0
DF
6 */
7
8#ifndef lint
b10e31a4 9static char sccsid[] = "@(#)endwin.c 5.5 (Berkeley) %G%";
2f14f200 10#endif /* not lint */
6e1c93d0 11
621d5558
KA
12/*
13 * Clean things up before exiting
14 *
621d5558
KA
15 */
16
17# include "curses.ext"
18
19endwin()
20{
21 resetty();
22 _puts(VE);
23 _puts(TE);
24 if (curscr) {
25 if (curscr->_flags & _STANDOUT) {
26 _puts(SE);
27 curscr->_flags &= ~_STANDOUT;
28 }
29 _endwin = TRUE;
30 }
31}