Life Under Curses

Stacey Campbell staceyc at sco.COM
Thu Feb 21 04:25:00 AEST 1991


In article <18812 at brahms.udel.edu> boutell at brahms.udel.edu (Thomas B Boutell) writes:
>[how to] force a total refresh of the screen.

The following works on System V curses, your mileage may vary for BSD;

	wrefresh(curscr);

>From the man page curses(3X);

Use of curscr
	The special window curscr can be used in only a few routines.
	If the window argument to clearok is curscr, the next call to
	wrefresh() with any window will cause the screen to be cleared
	and repainted from scratch.  If the window argument to wrefresh()
	is curscr, the screen is immediately cleared and repainted
	from scratch.  (This is how most programs would implement a
	"repaint-screen" routine.)
-- 
                             Stacey Campbell       
                        Internet: staceyc at sco.com
     UUCP: {uunet,ucscc,att,sq,altos,lotus,sun,microsoft}!sco!staceyc



More information about the Comp.unix.programmer mailing list