* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
static char sccsid
[] = "@(#)erase.c 5.1 (Berkeley) %G%";
* This routine erases everything on the window.
reg
char *sp
, *end
, *start
, *maxx
;
fprintf(outf
, "WERASE(%0.2o)\n", win
);
for (y
= 0; y
< win
->_maxy
; y
++) {
end
= &start
[win
->_maxx
];
for (sp
= start
; sp
< end
; sp
++)
touchline(win
, y
, minx
, maxx
- win
->_y
[y
]);
win
->_curx
= win
->_cury
= 0;