Commit | Line | Data |
---|---|---|
6e1c93d0 DF |
1 | /* |
2 | * Copyright (c) 1980 Regents of the University of California. | |
3 | * All rights reserved. The Berkeley software License Agreement | |
4 | * specifies the terms and conditions for redistribution. | |
5 | */ | |
6 | ||
7 | #ifndef lint | |
8 | static char sccsid[] = "@(#)endwin.c 5.1 (Berkeley) %G%"; | |
9 | #endif not lint | |
10 | ||
621d5558 KA |
11 | /* |
12 | * Clean things up before exiting | |
13 | * | |
621d5558 KA |
14 | */ |
15 | ||
16 | # include "curses.ext" | |
17 | ||
18 | endwin() | |
19 | { | |
20 | resetty(); | |
21 | _puts(VE); | |
22 | _puts(TE); | |
23 | if (curscr) { | |
24 | if (curscr->_flags & _STANDOUT) { | |
25 | _puts(SE); | |
26 | curscr->_flags &= ~_STANDOUT; | |
27 | } | |
28 | _endwin = TRUE; | |
29 | } | |
30 | } |