12247Sarnold /* 2*34677Sbostic * Copyright (c) 1981 Regents of the University of California. 3*34677Sbostic * All rights reserved. 4*34677Sbostic * 5*34677Sbostic * Redistribution and use in source and binary forms are permitted 6*34677Sbostic * provided that this notice is preserved and that due credit is given 7*34677Sbostic * to the University of California at Berkeley. The name of the University 8*34677Sbostic * may not be used to endorse or promote products derived from this 9*34677Sbostic * software without specific prior written permission. This software 10*34677Sbostic * is provided ``as is'' without express or implied warranty. 1122661Sdist */ 1222661Sdist 1322661Sdist #ifndef lint 14*34677Sbostic static char sccsid[] = "@(#)endwin.c 5.2 (Berkeley) 06/08/88"; 15*34677Sbostic #endif /* not lint */ 1622661Sdist 1722661Sdist /* 182247Sarnold * Clean things up before exiting 192247Sarnold * 202247Sarnold */ 212247Sarnold 222247Sarnold # include "curses.ext" 232247Sarnold 242247Sarnold endwin() 252247Sarnold { 262247Sarnold resetty(); 272247Sarnold _puts(VE); 282247Sarnold _puts(TE); 292247Sarnold if (curscr) { 302247Sarnold if (curscr->_flags & _STANDOUT) { 312247Sarnold _puts(SE); 322247Sarnold curscr->_flags &= ~_STANDOUT; 332247Sarnold } 342247Sarnold _endwin = TRUE; 352247Sarnold } 362247Sarnold } 37