nl_count = 0;
void term_init(void) {    text = sbtop = scrtop = disptop = cpos = NULL;    disptext = wanttext = NULL;    tabs = NULL;    selspace = NULL;    deselect();    rows = cols = -1;    nl_count = 0;    power_on();}