* Copyright (c) 1981 Regents of the University of California.
* Redistribution and use in source and binary forms are permitted
* provided that this notice is preserved and that due credit is given
* to the University of California at 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'' without express or implied warranty.
static char sccsid
[] = "@(#)clrtobot.c 5.3 (Berkeley) %G%";
* This routine erases everything on the window.
reg
char *sp
, *end
, *maxx
;
for (y
= win
->_cury
; y
< win
->_maxy
; y
++) {
end
= &win
->_y
[y
][win
->_maxx
];
for (sp
= &win
->_y
[y
][startx
]; sp
< end
; sp
++)
touchline(win
, y
, minx
, maxx
- &win
->_y
[y
][0]);