xref: /csrg-svn/lib/libplot/dumb/close.c (revision 46635)
119971Sdist /*
219971Sdist  * Copyright (c) 1980 Regents of the University of California.
319971Sdist  * All rights reserved.  The Berkeley software License Agreement
419971Sdist  * specifies the terms and conditions for redistribution.
519971Sdist  */
619971Sdist 
715430Sralph #ifndef lint
8*46635Sbostic static char sccsid[] = "@(#)close.c	5.2 (Berkeley) 02/24/91";
919971Sdist #endif not lint
1015430Sralph 
1115430Sralph #include <signal.h>
1215430Sralph #include "dumb.h"
1315430Sralph 
14*46635Sbostic void
1515430Sralph closepl()
1615430Sralph {
1715430Sralph 	int i, j;
1815430Sralph 
1915430Sralph 	for(j=0; j<LINES; j++){
2015430Sralph 		for(i=0; i<COLS; i++){
2115430Sralph 			printf("%c", screenmat[i][j]);
2215430Sralph 		}
2315430Sralph 		printf("\n");
2415430Sralph 	}
2515430Sralph 	signal(SIGINT, SIG_IGN);
2615430Sralph 	exit(0);
2715430Sralph }
28