Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!brutus.cs.uiuc.edu!wuarchive!wugate!uunet!mcsun!ukc!axion!vision!chris From: chris@vision.UUCP (Chris Davies) Newsgroups: comp.unix.questions Subject: Refreshing the screen using curses Keywords: curses MINICURSES refresh() Message-ID: <543@piglet.vision.UUCP> Date: 30 Aug 89 10:15:05 GMT Reply-To: chris@vision.UUCP (Chris Davies) Organization: VisionWare Ltd., Leeds, UK Lines: 37 System: ALTOS 1000 running Unix 5.3b (or so!) with Informix 2.10.03B Hi, I have an application (Informix, actually) which uses curses (with the MINICURSES option set), and I want to call a subroutine of my own from within Informix which does *not* use curses. So far, no problem; doing this is fairly straightforward. When my function returns control to the application I perform a call to refresh() so that the screen is restored to the same state as before I trashed it (are you with me so far? Good!)... Unfortunately, this doesn't work - as far as I can see refresh() is too clever and only redraws the bits it "knows" have been corrupted. I experimented with clearok() and doupdate(), but these aren't included in MINICURSES (at least, in the set of functions that Informix provide in their library). I even tried setting win->_clear = 1 and then calling refresh(), but this didn't work!! Before anyone suggests I try including the standard curses library, this doesn't work either - it and the Informix libraries conflict with some "identical" structures being different sizes!! Is it possible to force the screen to be *completely* redrawn, and if so, how!? If not, how about a method to get ^R into the keyboard buffer (if there is one in raw mode under MINICURSES) so that the Application will redraw the screen (like ^L in vi)... Please reply via email; I'll summarize if enough interest is shown, etc. Chris -- VISIONWARE LTD | UK UUCP: chris@vision.uucp Leeds Business Park | US UUCP: chris@vware.uucp Bruntcliffe Lane | JANET: chris%vision@uk.ac.ukc Morley, LEEDS LS27 0JG | BANGNET: ...!mcvax!ukc!vision!chris England | VOICE: +44 532 529292 ----------------- "You call these opinons? Not Visionware's!" -----------------