paul@deadpup.UUCP (paul) (05/12/89)
For the first time in a number of years, I find myself needing to do "user friendly" programming under UNIX, and hence needing to use curses(3X). One approach that I'm considering is to create windows and subwindows within certain subroutines, and then discard them when I'm through. The problem is that I can find no close/free operations in the documentation (NCR Programmer's Reference and AT&T Programmer's Guide). Is such a capability provided in an undocumented subroutine, or is it necessary to pursue another tack? I don't have access to the source :-( Paul J. Mech oucsace.cs.OHIOU.EDU!deadpup!paul uiucuxc!oucs!oucsace!deadpup!paul
kucharsk@uts.amdahl.com (William Kucharski) (05/13/89)
Calling delwin() should do the trick. Syntax: delwin(win) WINDOW *win; My man page for curses(3X) describes it so: delwin(win) Delete the named window, freeing up all memory associated with it. If you try to delete a main window before all of its subwindows have been deleted, ERR will be returned. -- William Kucharski ARPA: kucharsk@uts.amdahl.com UUCP: ...!{ames,decwrl,sun,uunet}!amdahl!kucharsk Disclaimer: The opinions expressed above are my own, and may not agree with those of any other sentient being, not to mention those of my employer. So there.