screen->logstart = buffer;
screen->logstart = VTbuffer;
void end_tek_mode (){    register TScreen *screen = &term->screen;    if (screen->TekEmu) {#ifdef ALLOWLOGGING	if (screen->logging) {	    FlushLog (screen);	    screen->logstart = buffer;	}#endif	longjmp(Tekend, 1);    }    return;}