for (j = 0; j < line->cols; j++) { if (line->chars[j].chr != term->erase_char.chr || line->chars[j].attr != term->erase_char.attr) break; }
for (j = 0; j < line->cols; j++) if (!termchars_equal(&line->chars[j], &term->erase_char)) break;
static int find_last_nonempty_line(Terminal * term, tree234 * screen){    int i;    for (i = count234(screen) - 1; i >= 0; i--) {	termline *line = index234(screen, i);	int j;	for (j = 0; j < line->cols; j++) {	    if (line->chars[j].chr != term->erase_char.chr ||		line->chars[j].attr != term->erase_char.attr) break;	}	if (j != line->cols) break;    }    return i;}