Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!sci.ccny.cuny.edu!phri!marob!daveh From: daveh@marob.masa.com (Dave Hammond) Newsgroups: comp.lang.c Subject: Re: Curses question Message-ID: <26DC061B.19FE@marob.masa.com> Date: 29 Aug 90 18:14:51 GMT References: <556@edpmgt.UUCP> <1990Aug29.021239.8182@groucho> Organization: ESCC, New York City Lines: 21 In article <1990Aug29.021239.8182@groucho> smith@wallaby.UUCP (William D. Smith) writes: >In article <556@edpmgt.UUCP> gpitcher@edpmgt.UUCP (Glenn Pitcher) writes: >>[deleted code] >> >> endwin(); >>} >> > When program B is finished I assume you are doing a refresh in program A. >Since you did not use the curses routines in program A to change the screen >program A has no way of knowing that the window has changed. You can use the >touchwin command to force the window to do a total update. Also, beware that endwin() in the sub-program will try to output a 'te' (terminal-mode end) sequence, which may confuse the parent curses program to the point that touchwin() and refresh() will not help (the parent has no idea that the physical terminal setup has changed). -- Dave Hammond daveh@marob.masa.com uunet!masa.com!marob!daveh