xref: /csrg-svn/lib/libplot/dumb/close.c (revision 19971)
1*19971Sdist /*
2*19971Sdist  * Copyright (c) 1980 Regents of the University of California.
3*19971Sdist  * All rights reserved.  The Berkeley software License Agreement
4*19971Sdist  * specifies the terms and conditions for redistribution.
5*19971Sdist  */
6*19971Sdist 
715430Sralph #ifndef lint
8*19971Sdist static char sccsid[] = "@(#)close.c	5.1 (Berkeley) 05/07/85";
9*19971Sdist #endif not lint
1015430Sralph 
1115430Sralph #include <signal.h>
1215430Sralph #include "dumb.h"
1315430Sralph 
1415430Sralph closepl()
1515430Sralph {
1615430Sralph 	int i, j;
1715430Sralph 
1815430Sralph 	for(j=0; j<LINES; j++){
1915430Sralph 		for(i=0; i<COLS; i++){
2015430Sralph 			printf("%c", screenmat[i][j]);
2115430Sralph 		}
2215430Sralph 		printf("\n");
2315430Sralph 	}
2415430Sralph 	signal(SIGINT, SIG_IGN);
2515430Sralph 	exit(0);
2615430Sralph }
27