term->last_blink = term->last_tblink = 0;
term->cblink_pending = term->tblink_pending = FALSE;
Terminal *term_init(Config *mycfg, struct unicode_data *ucsdata,		    void *frontend){    Terminal *term;    /*     * Allocate a new Terminal structure and initialise the fields     * that need it.     */    term = snew(Terminal);    term->frontend = frontend;    term->ucsdata = ucsdata;    term->cfg = *mycfg;		       /* STRUCTURE COPY */    term->logctx = NULL;    term->compatibility_level = TM_PUTTY;    strcpy(term->id_string, "\033[?6c");    term->last_blink = term->last_tblink = 0;    term->paste_buffer = NULL;    term->paste_len = 0;    term->last_paste = 0;    bufchain_init(&term->inbuf);    bufchain_init(&term->printer_buf);    term->printing = term->only_printing = FALSE;    term->print_job = NULL;    term->vt52_mode = FALSE;    term->cr_lf_return = FALSE;    term->seen_disp_event = FALSE;    term->xterm_mouse = term->mouse_is_down = FALSE;    term->reset_132 = FALSE;    term->blinker = term->tblinker = 0;    term->has_focus = 1;    term->repeat_off = FALSE;    term->termstate = TOPLEVEL;    term->selstate = NO_SELECTION;    term->curstype = 0;    term->screen = term->alt_screen = term->scrollback = NULL;    term->tempsblines = 0;    term->alt_sblines = 0;    term->disptop = 0;    term->disptext = NULL;    term->dispcursx = term->dispcursy = -1;    term->tabs = NULL;    deselect(term);    term->rows = term->cols = -1;    power_on(term);    term->beephead = term->beeptail = NULL;#ifdef OPTIMISE_SCROLL    term->scrollhead = term->scrolltail = NULL;#endif /* OPTIMISE_SCROLL */    term->nbeeps = 0;    term->lastbeep = FALSE;    term->beep_overloaded = FALSE;    term->attr_mask = 0xffffffff;    term->resize_fn = NULL;    term->resize_ctx = NULL;    term->in_term_out = FALSE;    term->ltemp = NULL;    term->ltemp_size = 0;    term->wcFrom = NULL;    term->wcTo = NULL;    term->wcFromTo_size = 0;    term->bidi_cache_size = 0;    term->pre_bidi_cache = term->post_bidi_cache = NULL;    /* FULL-TERMCHAR */    term->basic_erase_char.chr = CSET_ASCII | ' ';    term->basic_erase_char.attr = ATTR_DEFAULT;    term->basic_erase_char.cc_next = 0;    term->erase_char = term->basic_erase_char;    return term;}