xref: /csrg-svn/lib/libplot/bitgraph/open.c (revision 19851)
1*19851Sdist /*
2*19851Sdist  * Copyright (c) 1980 Regents of the University of California.
3*19851Sdist  * All rights reserved.  The Berkeley software License Agreement
4*19851Sdist  * specifies the terms and conditions for redistribution.
5*19851Sdist  */
6*19851Sdist 
715421Sralph #ifndef lint
8*19851Sdist static char sccsid[] = "@(#)open.c	5.2 (Berkeley) 04/30/85";
9*19851Sdist #endif not lint
1015421Sralph 
11*19851Sdist 
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 
2515421Sralph openpl()
2615421Sralph {
2715421Sralph 	int closepl();
2815421Sralph 
2915421Sralph 	/* catch interupts */
3015421Sralph 	signal(SIGINT, closepl);
3115421Sralph 	currentx = 0;
3215421Sralph 	currenty = 0;
3315421Sralph 
3415421Sralph 	space(0, 0, XMAX, YMAX);
3515421Sralph }
36