xref: /original-bsd/usr.bin/window/wwredraw.c (revision 82b6afa4)
1 /*
2  * Copyright (c) 1983, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * This code is derived from software contributed to Berkeley by
6  * Edward Wang at The University of California, Berkeley.
7  *
8  * %sccs.include.redist.c%
9  */
10 
11 #ifndef lint
12 static char sccsid[] = "@(#)wwredraw.c	8.1 (Berkeley) 06/06/93";
13 #endif /* not lint */
14 
15 #include "ww.h"
16 #include "tt.h"
17 
wwredraw()18 wwredraw()
19 {
20 	register i, j;
21 	register union ww_char *os;
22 
23 	xxclear();
24 	for (i = 0; i < wwnrow; i++) {
25 		wwtouched[i] = WWU_TOUCHED;
26 		os = wwos[i];
27 		for (j = wwncol; --j >= 0;)
28 			(os++)->c_w = ' ';
29 	}
30 }
31