Commit | Line | Data |
---|---|---|
467dc69b RC |
1 | #ifndef lint |
2 | static 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 | ||
12 | int currentx = 0; | |
13 | int currenty = 0; | |
14 | double lowx = 0.0; | |
15 | double lowy = 0.0; | |
16 | double scalex = 1.0; | |
17 | double scaley = 1.0; | |
18 | ||
19 | openpl() | |
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 | } |