ANSI
[unix-history] / usr / src / usr.bin / window / wwclreos.c
index d8632a0..6c8c0d1 100644 (file)
@@ -1,11 +1,29 @@
+/*
+ * Copyright (c) 1983 Regents of the University of California.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * Edward Wang at The University of California, Berkeley.
+ *
+ * %sccs.include.redist.c%
+ */
+
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)wwclreos.c  3.1 83/08/09";
-#endif
+static char sccsid[] = "@(#)wwclreos.c 3.11 (Berkeley) %G%";
+#endif /* not lint */
 
 #include "ww.h"
 
 #include "ww.h"
+#include "tt.h"
 
 
-wwclreos(w)
+wwclreos(w, row, col)
 register struct ww *w;
 {
 register struct ww *w;
 {
-       w = w;
+       register i;
+
+       wwclreol(w, row, col);
+       for (i = row + 1; i < w->ww_b.b; i++)
+               wwclreol(w, i, w->ww_b.l);
+       /* XXX */
+       if (!w->ww_noupdate)
+               wwupdate1(w->ww_i.t, w->ww_i.b);
 }
 }