[net.bugs.4bsd] Curses question

naiman@pegasus.UUCP (Ephrayim J. Naiman) (06/03/84)

I am trying to write a curses program on systems that run on termcap
(I'm used to terminfo).  I've tried many times to have a '^L'
clear and refresh the screen with the following code with no success :

	clearok (win,TRUE);
	wrefresh (win);

The exact same code works on terminfo.  I've tried this on a 4.1BSD
and a 3.0 USG (I think that's what it's called).

The only way I've been able to force a refresh is :

	clear();
	refresh();
	touchwin (win);
	wrefresh (win);

Is that the only way to do it or am I doing something wrong ?


Another question, how do I deal with ^Z on BSD systems ?
All I get is a segment fault when I try to foreground the curses program.
-- 
==> Ephrayim J. Naiman @ AT&T Information Systems Laboratories (201) 576-6259
Paths: [ihnp4, allegra, ...]!pegasus!naiman

larry@ism780.UUCP (06/07/84)

#R:pegasus:-137800:ism780:13300001:000:326
ism780!larry    Jun  6 10:13:00 1984

To refresh the screen upon seeing ^L, try simply

	wrefresh(curscr)

Because curscr is a "screen", the display will always be zapped before
the refresh, insuring a complete rewrite.

I can't explain your problems with ^Z, if you are really running on a
BSD system.  The module tstp.c is supposed to deal with the STOP signal.