Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.unix.questions Subject: Re: How does one refresh a terminal screen in SysV/386 curses ? Keywords: curses terminal refresh restore screen Message-ID: <1990Feb25.003802.14247@virtech.uucp> Date: 25 Feb 90 00:38:02 GMT References: <342@ntpdvp1.UUCP> Reply-To: cpcahil@virtech.UUCP (Conor P. Cahill) Distribution: usa Organization: Virtual Technologies Inc., Sterling VA Lines: 22 In article <342@ntpdvp1.UUCP> samc@ntpdvp1.UUCP (Sam Christie) writes: >Dial up users find that noise really trashes the screen, so it >would be nice to refresh it at a certain key stroke, say cntl-R. >Since the entire application gets all input from one of two >'C' functions, we would like to build the refresh logic into >those two places. Does anyone know how to get curses to send its >entire terminal buffer out ? Either of the following should work: 1. Just touchwin() and wnoutrefresh() each window, followed by a doupdate(). Of course, this requires the knowledge of what windows are on the screen. 2. scr_dump(/tmp/screen.[pid]), followed by scr_restore(same_filename), followed by doupdate() -- +-----------------------------------------------------------------------+ | Conor P. Cahill uunet!virtech!cpcahil 703-430-9247 ! | Virtual Technologies Inc., P. O. Box 876, Sterling, VA 22170 | +-----------------------------------------------------------------------+