Refreshing the screen using curses
Chris Davies
chris at vision.UUCP
Wed Aug 30 20:15:05 AEST 1989
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 at vision.uucp
Leeds Business Park | US UUCP: chris at vware.uucp
Bruntcliffe Lane | JANET: chris%vision at uk.ac.ukc
Morley, LEEDS LS27 0JG | BANGNET: ...!mcvax!ukc!vision!chris
England | VOICE: +44 532 529292
----------------- "You call these opinons? Not Visionware's!" -----------------
More information about the Comp.unix.questions
mailing list