Commit | Line | Data |
---|---|---|
dca25f5a DF |
1 | /* |
2 | * Copyright (c) 1980 Regents of the University of California. | |
3 | * All rights reserved. The Berkeley software License Agreement | |
4 | * specifies the terms and conditions for redistribution. | |
5 | */ | |
6 | ||
3d8e0d99 | 7 | #ifndef lint |
dca25f5a DF |
8 | static char sccsid[] = "@(#)open.c 5.1 (Berkeley) %G%"; |
9 | #endif not lint | |
3d8e0d99 RC |
10 | |
11 | /* | |
12 | * Displays plot files on an HP7221 plotter. | |
13 | * Cloned from bgplot.c and gigiplot.c by Jim Kleckner | |
14 | * Thu Jun 30 13:35:04 PDT 1983 | |
15 | * Requires a handshaking program such as hp7221cat to get | |
16 | * the plotter open and ready. | |
17 | */ | |
18 | ||
19 | #include <signal.h> | |
20 | #include "hp7221.h" | |
21 | ||
22 | int currentx = 0; | |
23 | int currenty = 0; | |
24 | double lowx = 0.0; | |
25 | double lowy = 0.0; | |
26 | double scale = 1.0; | |
27 | ||
28 | openpl() | |
29 | { | |
30 | int closepl(); | |
31 | ||
32 | /* catch interupts */ | |
33 | signal(SIGINT, closepl); | |
34 | currentx = 0; | |
35 | currenty = 0; | |
36 | printf( "~VR~W" ); | |
37 | putMBP( 800, 2000 ); | |
38 | putMBP( 7600, 9600 ); | |
39 | printf( "~S" ); | |
40 | putMBP( XMAX, YMAX ); | |
41 | printf( "vA~*z" ); | |
42 | ||
43 | space(0,0,XMAX,YMAX); | |
44 | } |