xref: /csrg-svn/lib/libplot/bitgraph/close.c (revision 19851)
1*19851Sdist /*
2*19851Sdist  * Copyright (c) 1980 Regents of the University of California.
3*19851Sdist  * All rights reserved.  The Berkeley software License Agreement
4*19851Sdist  * specifies the terms and conditions for redistribution.
5*19851Sdist  */
6*19851Sdist 
715413Sralph #ifndef lint
8*19851Sdist static char sccsid[] = "@(#)close.c	5.2 (Berkeley) 04/30/85";
9*19851Sdist #endif not lint
1015413Sralph 
11*19851Sdist 
1215413Sralph #include <signal.h>
1315413Sralph #include "bg.h"
1415413Sralph 
1515413Sralph closepl()
1615413Sralph {
1715413Sralph 	/* recieve interupts */
1815413Sralph 	signal(SIGINT, SIG_IGN);
1915413Sralph 
2015413Sralph 	/* exit graphics mode */
2115413Sralph 	putchar( ESC );
2215413Sralph 	printf("[H");
2315413Sralph 	exit(0);
2415413Sralph }
25