if (!term->cfg.arabicshaping || !term->cfg.bidi) { term->wcFrom = sresize(term->wcFrom, term->cols, bidi_char); term->ltemp = sresize(term->ltemp, term->cols+1, unsigned long); term->wcTo = sresize(term->wcTo, term->cols, bidi_char); }
void term_update(Terminal *term){    Context ctx;    ctx = get_ctx(term->frontend);    if (ctx) {	int need_sbar_update = term->seen_disp_event;	if (term->seen_disp_event && term->cfg.scroll_on_disp) {	    term->disptop = 0;	       /* return to main screen */	    term->seen_disp_event = 0;	    need_sbar_update = TRUE;	}	if (need_sbar_update)	    update_sbar(term);	do_paint(term, ctx, TRUE);	sys_cursor(term->frontend, term->curs.x, term->curs.y - term->disptop);	free_ctx(ctx);    }}