selspace = NULL;
void term_init(void){    screen = alt_screen = scrollback = NULL;    disptop = 0;    disptext = wanttext = NULL;    tabs = NULL;    selspace = NULL;    deselect();    rows = cols = -1;    power_on();    beephead = beeptail = NULL;    nbeeps = 0;    lastbeep = FALSE;    beep_overloaded = FALSE;}