xref: /csrg-svn/lib/libplot/dumb/close.c (revision 61342)
148505Sbostic /*-
2*61342Sbostic  * Copyright (c) 1980, 1993
3*61342Sbostic  *	The Regents of the University of California.  All rights reserved.
448505Sbostic  *
548505Sbostic  * %sccs.include.proprietary.c%
619971Sdist  */
719971Sdist 
815430Sralph #ifndef lint
9*61342Sbostic static char sccsid[] = "@(#)close.c	8.1 (Berkeley) 06/04/93";
1048505Sbostic #endif /* not lint */
1115430Sralph 
1215430Sralph #include <signal.h>
1315430Sralph #include "dumb.h"
1415430Sralph 
1546635Sbostic void
closepl()1615430Sralph closepl()
1715430Sralph {
1815430Sralph 	int i, j;
1915430Sralph 
2015430Sralph 	for(j=0; j<LINES; j++){
2115430Sralph 		for(i=0; i<COLS; i++){
2215430Sralph 			printf("%c", screenmat[i][j]);
2315430Sralph 		}
2415430Sralph 		printf("\n");
2515430Sralph 	}
2615430Sralph 	signal(SIGINT, SIG_IGN);
2715430Sralph 	exit(0);
2815430Sralph }
29