chris@vision.UUCP (Chris Davies) (08/30/89)
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!" -----------------
chris@vision.UUCP (Chris Davies) (09/18/89)
In article <543@piglet.vision.UUCP> chris@vision.UUCP (that's me) wrote some
stuff about wanting to *completely* refresh a screen with MINICURSES...
Many thanks to all those who replied. I've been away for a couple of weeks;
hence the delay in responding :-)
The technique is to use wrefresh(curscr) rather than plain refresh() or
wrefresh(stdscr), 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!" -----------------