if ( (seen_key_event && (unscroll_event & US_KEY)) || (seen_disp_event && (unscroll_event & US_DISP)) ) {
if ( (seen_key_event && (cfg.scroll_on_key)) || (seen_disp_event && (!cfg.scroll_on_key)) ) {
void term_update(void) {    Context ctx;    ctx = get_ctx();    if (ctx) {        if ( (seen_key_event && (unscroll_event & US_KEY)) ||	     (seen_disp_event && (unscroll_event & US_DISP)) ) {	    disptop = scrtop;	    seen_disp_event = seen_key_event = 0;	}	do_paint (ctx, TRUE);	free_ctx (ctx);    }}