xref: /csrg-svn/lib/libplot/bitgraph/open.c (revision 15421)
1*15421Sralph #ifndef lint
2*15421Sralph static char sccsid[] = "@(#)open.c	4.1 (Berkeley) 11/10/83";
3*15421Sralph #endif
4*15421Sralph 
5*15421Sralph /*
6*15421Sralph  * Displays plot files on a BBN bitgraph terminal.
7*15421Sralph  */
8*15421Sralph 
9*15421Sralph #include <signal.h>
10*15421Sralph #include "bg.h"
11*15421Sralph 
12*15421Sralph int currentx = 0;
13*15421Sralph int currenty = 0;
14*15421Sralph double lowx = 0.0;
15*15421Sralph double lowy = 0.0;
16*15421Sralph double scale = 1.0;
17*15421Sralph 
18*15421Sralph openpl()
19*15421Sralph {
20*15421Sralph 	int closepl();
21*15421Sralph 
22*15421Sralph 	/* catch interupts */
23*15421Sralph 	signal(SIGINT, closepl);
24*15421Sralph 	currentx = 0;
25*15421Sralph 	currenty = 0;
26*15421Sralph 
27*15421Sralph 	space(0, 0, XMAX, YMAX);
28*15421Sralph }
29