xref: /csrg-svn/lib/libplot/gigi/close.c (revision 46636)
119974Sdist /*
219974Sdist  * Copyright (c) 1980 Regents of the University of California.
319974Sdist  * All rights reserved.  The Berkeley software License Agreement
419974Sdist  * specifies the terms and conditions for redistribution.
519974Sdist  */
619974Sdist 
715487Sralph #ifndef lint
8*46636Sbostic static char sccsid[] = "@(#)close.c	5.2 (Berkeley) 02/24/91";
919974Sdist #endif not lint
1015487Sralph 
1115487Sralph #include <signal.h>
1215487Sralph #include "gigi.h"
1315487Sralph 
14*46636Sbostic void
1515487Sralph closepl()
1615487Sralph {
1715487Sralph 	/* recieve interupts */
1815487Sralph 	signal(SIGINT, SIG_IGN);
1915487Sralph 
2015487Sralph 	/* exit graphics mode */
2115487Sralph 	putchar( ESC );
2215487Sralph 	putchar('\\');
2315487Sralph 
2415487Sralph 	exit(0);
2515487Sralph }
26