4 /****************************************************************/
5 /* Werase() fills all lines of window 'win' with blanks and po- */
6 /* Sitions the cursor at home in the scroll region. */
7 /****************************************************************/
12 int *end
, *start
, y
, blank
;
14 blank
= ' ' | (win
->_attrs
& ATR_MSK
);
16 for (y
= win
->_regtop
; y
<= win
->_regbottom
; y
++) { /* clear all lines */
17 start
= win
->_line
[y
];
18 end
= &start
[win
->_maxx
];
19 while (start
<= end
) /* clear all line */
22 win
->_maxchng
[y
] = win
->_maxx
;
24 win
->_cury
= win
->_regtop
; /* cursor home */