xref: /csrg-svn/lib/libplot/gigi/close.c (revision 48508)
1*48508Sbostic /*-
2*48508Sbostic  * Copyright (c) 1980 The Regents of the University of California.
3*48508Sbostic  * All rights reserved.
4*48508Sbostic  *
5*48508Sbostic  * %sccs.include.proprietary.c%
619974Sdist  */
719974Sdist 
815487Sralph #ifndef lint
9*48508Sbostic static char sccsid[] = "@(#)close.c	5.3 (Berkeley) 04/22/91";
10*48508Sbostic #endif /* not lint */
1115487Sralph 
1215487Sralph #include <signal.h>
1315487Sralph #include "gigi.h"
1415487Sralph 
1546636Sbostic void
1615487Sralph closepl()
1715487Sralph {
1815487Sralph 	/* recieve interupts */
1915487Sralph 	signal(SIGINT, SIG_IGN);
2015487Sralph 
2115487Sralph 	/* exit graphics mode */
2215487Sralph 	putchar( ESC );
2315487Sralph 	putchar('\\');
2415487Sralph 
2515487Sralph 	exit(0);
2615487Sralph }
27