* Copyright (c) 1983 Regents of the University of California.
* Redistribution and use in source and binary forms are permitted
* provided that the above copyright notice and this paragraph are
* duplicated in all such forms and that any documentation,
* advertising materials, and other materials related to such
* distribution and use acknowledge that the software was developed
* by the University of California, Berkeley. The name of the
* University may not be used to endorse or promote products derived
* from this software without specific prior written permission.
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
static char sccsid
[] = "@(#)wwclreos.c 3.8 (Berkeley) %G%";
* Quick and dirty check for windows that cover the bottom
* portion of the screen. Not meant to be complete.
if (tt
.tt_clreos
&& w
->ww_i
.b
== wwnrow
&& w
->ww_i
.l
== 0 &&
w
->ww_i
.r
== wwncol
&& wwvisible(w
)) {
register union ww_char
*s
;
* We have to fix wwos becuase wwclreol1 won't do that.
for (j
= wwncol
- col
; --j
>= 0;)
for (i
++; i
< wwnrow
; i
++) {
for (j
= wwncol
; --j
>= 0;)
wwclreol1(w
, row
, col
, cleared
);
for (i
= row
+ 1; i
< w
->ww_b
.b
; i
++)
wwclreol1(w
, i
, w
->ww_b
.l
, cleared
);