xref: /csrg-svn/lib/libplot/bitgraph/open.c (revision 61332)
148504Sbostic /*-
2*61332Sbostic  * Copyright (c) 1980, 1993
3*61332Sbostic  *	The Regents of the University of California.  All rights reserved.
448504Sbostic  *
548504Sbostic  * %sccs.include.proprietary.c%
619851Sdist  */
719851Sdist 
815421Sralph #ifndef lint
9*61332Sbostic static char sccsid[] = "@(#)open.c	8.1 (Berkeley) 06/04/93";
1048504Sbostic #endif /* not lint */
1115421Sralph 
1215421Sralph /*
1315421Sralph  * Displays plot files on a BBN bitgraph terminal.
1415421Sralph  */
1515421Sralph 
1615421Sralph #include <signal.h>
1715421Sralph #include "bg.h"
1815421Sralph 
1915421Sralph int currentx = 0;
2015421Sralph int currenty = 0;
2115421Sralph double lowx = 0.0;
2215421Sralph double lowy = 0.0;
2315421Sralph double scale = 1.0;
2415421Sralph 
openpl()2515421Sralph openpl()
2615421Sralph {
2746634Sbostic 	void closepl();
2815421Sralph 
2915421Sralph 	/* catch interupts */
3015421Sralph 	signal(SIGINT, closepl);
3115421Sralph 	currentx = 0;
3215421Sralph 	currenty = 0;
3315421Sralph 
3415421Sralph 	space(0, 0, XMAX, YMAX);
3515421Sralph }
36