/* * This function gets called just before we go back home to the shell. * Put all of the terminal parameters back. * Under UN*X this just calls ttcooked(), but the ttclose() hook is in * because vttidy() in display.c expects it for portability reasons. */ void ttclose(void) { if (ttstarted) { if (ttcooked() == FALSE) panic(""); /* ttcooked() already printf'd */ ttstarted = 0; } }
/* * This function gets called just * before we go back home to the shell. Put all of * the terminal parameters back. * Under MS-DOS this just calls ttcooked(), but the ttclose() hook is in * because vttidy() in display.c expects it for portability reasons. */ ttclose() { if (ttcooked() == FALSE) panic(""); /* ttcooked() already printf'd */ #ifdef FEPCTRL /* 90.11.26 by K.Takano */ fepmode_term(); #endif #ifdef TCCONIO #ifdef TCCONIOMODE textmode(oldmode); #endif #endif }