Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!cbnewsk!jfv From: jfv@cbnewsk.att.com (j.f.van valkenburg) Newsgroups: comp.unix.programmer Subject: Re: CURSES: use of overlay()/overwrite() Summary: try this Message-ID: <1991Jun21.160655.5262@cbnewsk.att.com> Date: 21 Jun 91 16:06:55 GMT References: <1991Jun20.170834.8080@mks.com> Distribution: na Organization: AT&T Bell Laboratories Lines: 32 In article <1991Jun20.170834.8080@mks.com>, ant@mks.com (Anthony Howe) writes: > > What is the correct way to use overlay() and overwrite(). Are they what > I need? I want to display a dialogue box, then later remove it from the > screen restoring whatever was covered. The catch is that I want the > dialogue box to do the refresh and maintain independence by not having > any knowledge of other windows other than curscr. > > -- > ant@mks.com Anthony C Howe > Mortice Kern Systems Inc. 35 King St. N., Waterloo, Ontario, Canada, N2J 6W9 > "Fate favors fools, small children, and ships named Enterprise" - Riker Instead of flipping windows as in overlay, try openning a new window altogether. By making a new window you can do a wrefresh(newwin) to update just one window or wnoutrefresh(newwin) and do everything with a refresh(). The two windows,stdscr and newwin, will be totally independent of each other and cursor addressing will be dependent on the window addressed. ------------------------ James F. Van Valkenburg a.k.a. "van" AT&T Attmail: !jfv jfv@cbnewsk.att.com Atlanta, GA. Voice 404-810-7920 =============================================================================== ---- Standard Disclaimers included -- Just another grunt at AT&T ---- ===============================================================================