endpos = startpos + cols+1;
endpos = startpos + cols;
static void erase_lots (int line_only, int from_begin, int to_end) {    unsigned long *startpos, *endpos;    if (line_only) {	startpos = cpos - curs_x;	endpos = startpos + cols+1;    } else {	startpos = scrtop;	endpos = startpos + rows * (cols+1);    }    if (!from_begin)	startpos = cpos;    if (!to_end)	endpos = cpos+1;    check_selection (startpos, endpos);    /* Clear screen also forces a full window redraw, just in case. */    if (startpos == scrtop && endpos == scrtop + rows * (cols+1))       term_invalidate();    while (startpos < endpos)	*startpos++ = erase_char;}