xref: /csrg-svn/lib/libplot/bitgraph/open.c (revision 46634)
119851Sdist /*
219851Sdist  * Copyright (c) 1980 Regents of the University of California.
319851Sdist  * All rights reserved.  The Berkeley software License Agreement
419851Sdist  * specifies the terms and conditions for redistribution.
519851Sdist  */
619851Sdist 
715421Sralph #ifndef lint
8*46634Sbostic static char sccsid[] = "@(#)open.c	5.3 (Berkeley) 02/24/91";
919851Sdist #endif not lint
1015421Sralph 
1119851Sdist 
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 {
27*46634Sbostic 	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