date and time created 83/11/10 11:02:44 by ralph
authorRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Fri, 11 Nov 1983 03:02:44 +0000 (19:02 -0800)
committerRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Fri, 11 Nov 1983 03:02:44 +0000 (19:02 -0800)
SCCS-vsn: lib/libplot/bitgraph/open.c 4.1

usr/src/lib/libplot/bitgraph/open.c [new file with mode: 0644]

diff --git a/usr/src/lib/libplot/bitgraph/open.c b/usr/src/lib/libplot/bitgraph/open.c
new file mode 100644 (file)
index 0000000..8c18d20
--- /dev/null
@@ -0,0 +1,28 @@
+#ifndef lint
+static char sccsid[] = "@(#)open.c     4.1 (Berkeley) %G%";
+#endif
+
+/*
+ * Displays plot files on a BBN bitgraph terminal.
+ */
+
+#include <signal.h>
+#include "bg.h"
+
+int currentx = 0;
+int currenty = 0;
+double lowx = 0.0;
+double lowy = 0.0;
+double scale = 1.0;
+
+openpl()
+{
+       int closepl();
+
+       /* catch interupts */
+       signal(SIGINT, closepl);
+       currentx = 0;
+       currenty = 0;
+
+       space(0, 0, XMAX, YMAX);
+}