xref: /csrg-svn/lib/libplot/dumb/close.c (revision 48505)
1*48505Sbostic /*-
2*48505Sbostic  * Copyright (c) 1980 The Regents of the University of California.
3*48505Sbostic  * All rights reserved.
4*48505Sbostic  *
5*48505Sbostic  * %sccs.include.proprietary.c%
619971Sdist  */
719971Sdist 
815430Sralph #ifndef lint
9*48505Sbostic static char sccsid[] = "@(#)close.c	5.3 (Berkeley) 04/22/91";
10*48505Sbostic #endif /* not lint */
1115430Sralph 
1215430Sralph #include <signal.h>
1315430Sralph #include "dumb.h"
1415430Sralph 
1546635Sbostic void
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