if (immediately)
if (immediately) {
void term_paint(Terminal *term, Context ctx,		int left, int top, int right, int bottom, int immediately){    int i, j;    if (left < 0) left = 0;    if (top < 0) top = 0;    if (right >= term->cols) right = term->cols-1;    if (bottom >= term->rows) bottom = term->rows-1;    for (i = top; i <= bottom && i < term->rows; i++) {	if ((term->disptext[i]->lattr & LATTR_MODE) == LATTR_NORM)	    for (j = left; j <= right && j < term->cols; j++)		term->disptext[i]->chars[j].attr = ATTR_INVALID;	else	    for (j = left / 2; j <= right / 2 + 1 && j < term->cols; j++)		term->disptext[i]->chars[j].attr = ATTR_INVALID;    }    /* This should happen soon enough, also for some reason it sometimes      * fails to actually do anything when re-sizing ... painting the wrong     * window perhaps ?     */    if (immediately)        do_paint (term, ctx, FALSE);}