old/more/more.c
/*
** Clean up terminal state and exit. Also come here if interrupt signal received
*/
Clean up terminal state and exit. Also come here if interrupt signal received
Clean up terminal state and exit . Also come here if interrupt signal received
void
end_it ()
{
    reset_tty ();
    if (clreol) {
	putchar ('\r');
	clreos ();
	fflush (stdout);
    }
    else if (!clreol && (promptlen > 0)) {
	kill_line ();
	fflush (stdout);
    }
    else
	write (2, "\n", 1);
    _exit(0);
}
void end_it ( ) { reset_tty ( ) ; if ( clreol ) { putchar ( ' \r ' ) ; clreos ( ) ; fflush ( stdout ) ; } else if ( ! clreol && ( promptlen > 0 ) ) { kill_line ( ) ; fflush ( stdout ) ; } else write ( 2 , " \n " , 1 ) ; _exit ( 0 ) ; }
Clean up terminal state and exit.
Clean up terminal state and exit .