term_schedule_tblink(term); term_schedule_cblink(term);
static void power_on(Terminal *term){    term->curs.x = term->curs.y = 0;    term->alt_x = term->alt_y = 0;    term->savecurs.x = term->savecurs.y = 0;    term->alt_t = term->marg_t = 0;    if (term->rows != -1)	term->alt_b = term->marg_b = term->rows - 1;    else	term->alt_b = term->marg_b = 0;    if (term->cols != -1) {	int i;	for (i = 0; i < term->cols; i++)	    term->tabs[i] = (i % 8 == 0 ? TRUE : FALSE);    }    term->alt_om = term->dec_om = term->cfg.dec_om;    term->alt_ins = term->insert = FALSE;    term->alt_wnext = term->wrapnext = term->save_wnext = FALSE;    term->alt_wrap = term->wrap = term->cfg.wrap_mode;    term->alt_cset = term->cset = term->save_cset = 0;    term->alt_utf = term->utf = term->save_utf = 0;    term->utf_state = 0;    term->alt_sco_acs = term->sco_acs = term->save_sco_acs = 0;    term->cset_attr[0] = term->cset_attr[1] = term->save_csattr = CSET_ASCII;    term->rvideo = 0;    term->in_vbell = FALSE;    term->cursor_on = 1;    term->big_cursor = 0;    term->default_attr = term->save_attr = term->curr_attr = ATTR_DEFAULT;    term->term_editing = term->term_echoing = FALSE;    term->app_cursor_keys = term->cfg.app_cursor;    term->app_keypad_keys = term->cfg.app_keypad;    term->use_bce = term->cfg.bce;    term->blink_is_real = term->cfg.blinktext;    term->erase_char = term->basic_erase_char;    term->alt_which = 0;    term_print_finish(term);    {	int i;	for (i = 0; i < 256; i++)	    term->wordness[i] = term->cfg.wordness[i];    }    if (term->screen) {	swap_screen(term, 1, FALSE, FALSE);	erase_lots(term, FALSE, TRUE, TRUE);	swap_screen(term, 0, FALSE, FALSE);	erase_lots(term, FALSE, TRUE, TRUE);    }}