date and time created 85/01/02 20:10:45 by jak
[unix-history] / usr / src / lib / libplot / gigi / open.c
CommitLineData
467dc69b
RC
1#ifndef lint
2static char sccsid[] = "@(#)open.c 4.1 (Berkeley) %G%";
3#endif
4
5/*
6 * Displays plot files on a gigi "graphics" terminal.
7 */
8
9#include <signal.h>
10#include "gigi.h"
11
12int currentx = 0;
13int currenty = 0;
14double lowx = 0.0;
15double lowy = 0.0;
16double scalex = 1.0;
17double scaley = 1.0;
18
19openpl()
20{
21 int closepl();
22
23 /* catch interupts */
24 signal(SIGINT, closepl);
25 currentx = 0;
26 currenty = 0;
27 /* enter grapics mode */
28 putchar(ESC); putchar('P'); putchar('p');
29
30 /* set some parameters */
31 printf("S(I0 T0 [0,0])");
32
33 space(0, 0, XMAX, YMAX);
34}