4 /****************************************************************/
5 /* Wclrtobot() fills the right half of the cursor line of */
6 /* Window 'win', and all lines below it with blanks. */
7 /****************************************************************/
12 int y
, minx
, startx
, *ptr
, *end
, *maxx
, blank
;
14 blank
= ' ' | (win
->_attrs
& ATR_MSK
);
16 for (y
= win
->_cury
; y
<= win
->_regbottom
; y
++) {
18 end
= &win
->_line
[y
][win
->_maxx
];
19 for (ptr
= &win
->_line
[y
][startx
]; ptr
<= end
; ptr
++) {
22 if (minx
== _NO_CHANGE
) minx
= ptr
- win
->_line
[y
];
26 if (minx
!= _NO_CHANGE
) {
27 if ((win
->_minchng
[y
] > minx
) || (win
->_minchng
[y
] == _NO_CHANGE
))
28 win
->_minchng
[y
] = minx
;
29 if (win
->_maxchng
[y
] < maxx
- win
->_line
[y
])
30 win
->_maxchng
[y
] = maxx
- win
->_line
[y
];