xref: /csrg-svn/lib/libplot/bitgraph/close.c (revision 61330)
148504Sbostic /*-
2*61330Sbostic  * Copyright (c) 1980, 1993
3*61330Sbostic  *	The Regents of the University of California.  All rights reserved.
448504Sbostic  *
548504Sbostic  * %sccs.include.proprietary.c%
619851Sdist  */
719851Sdist 
815413Sralph #ifndef lint
9*61330Sbostic static char sccsid[] = "@(#)close.c	8.1 (Berkeley) 06/04/93";
1048504Sbostic #endif /* not lint */
1115413Sralph 
1215413Sralph #include <signal.h>
1315413Sralph #include "bg.h"
1415413Sralph 
1546634Sbostic void
closepl()1615413Sralph closepl()
1715413Sralph {
1815413Sralph 	/* recieve interupts */
1915413Sralph 	signal(SIGINT, SIG_IGN);
2015413Sralph 
2115413Sralph 	/* exit graphics mode */
2215413Sralph 	putchar( ESC );
2315413Sralph 	printf("[H");
2415413Sralph 	exit(0);
2515413Sralph }
26