xref: /csrg-svn/lib/libplot/gigi/close.c (revision 19974)
1*19974Sdist /*
2*19974Sdist  * Copyright (c) 1980 Regents of the University of California.
3*19974Sdist  * All rights reserved.  The Berkeley software License Agreement
4*19974Sdist  * specifies the terms and conditions for redistribution.
5*19974Sdist  */
6*19974Sdist 
715487Sralph #ifndef lint
8*19974Sdist static char sccsid[] = "@(#)close.c	5.1 (Berkeley) 05/07/85";
9*19974Sdist #endif not lint
1015487Sralph 
1115487Sralph #include <signal.h>
1215487Sralph #include "gigi.h"
1315487Sralph 
1415487Sralph closepl()
1515487Sralph {
1615487Sralph 	/* recieve interupts */
1715487Sralph 	signal(SIGINT, SIG_IGN);
1815487Sralph 
1915487Sralph 	/* exit graphics mode */
2015487Sralph 	putchar( ESC );
2115487Sralph 	putchar('\\');
2215487Sralph 
2315487Sralph 	exit(0);
2415487Sralph }
25