예제 #1
0
파일: ttyio.c 프로젝트: UNGLinux/Obase
/*
 * 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;
	}
}
예제 #2
0
파일: ttyio.c 프로젝트: sarami55/ng-.1.5
/*
 * 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
}