Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!caen!sol.ctr.columbia.edu!emory!gatech!usenet.ins.cwru.edu!ncoast!allbery From: allbery@NCoast.ORG (Brandon S. Allbery KB8JRR) Newsgroups: comp.unix.programmer Subject: Re: Life Under Curses Message-ID: <1991Feb26.041922.8177@NCoast.ORG> Date: 26 Feb 91 04:19:22 GMT References: <18812@brahms.udel.edu> <464@bria> <1991Feb18.215907.18174@jwt.UUCP> Reply-To: allbery@ncoast.ORG (Brandon S. Allbery KB8JRR) Followup-To: comp.unix.programmer Organization: North Coast Public Access Un*x (ncoast) Lines: 23 As quoted from <1991Feb18.215907.18174@jwt.UUCP> by john@jwt.UUCP (John Temples): +--------------- | In article <464@bria> uunet!bria!mike writes: | >Use touchwin(win) and then wrefresh(win); if for some reason your | >curses library doesn't have 'em, then you can do something like this: | | touchwin() didn't seem to do anything at all on my SVR3.2 system when I was | trying to figure out how to do a complete screen redraw. I ended up doing | { endwin(); doupdate(); } That got all windows redrawn. +--------------- All touchwin does is disable some optimization, so wnoutrefresh() has to do more work to figure out what actually changed. It doesn't actually force curses to believe that things *did* change. This is needed because some things (subwindows?) can cause things to change without telling the right parts of curses, so wnoutrefresh() doesn't notice. ++Brandon -- Me: Brandon S. Allbery VHF/UHF: KB8JRR on 220, 2m, 440 Internet: allbery@NCoast.ORG Packet: KB8JRR @ WA8BXN America OnLine: KB8JRR AMPR: KB8JRR.AmPR.ORG [44.70.4.88] uunet!usenet.ins.cwru.edu!ncoast!allbery Delphi: ALLBERY Brought to you by Super Global Mega Corp .com