date and time created 85/01/02 20:29:43 by jak
[unix-history] / usr / src / lib / libplot / hp7221 / open.c
CommitLineData
3d8e0d99
RC
1#ifndef lint
2static char sccsid[] = "@(#)open.c 4.1 (Berkeley) %G%";
3#endif
4
5/*
6 * Displays plot files on an HP7221 plotter.
7 * Cloned from bgplot.c and gigiplot.c by Jim Kleckner
8 * Thu Jun 30 13:35:04 PDT 1983
9 * Requires a handshaking program such as hp7221cat to get
10 * the plotter open and ready.
11 */
12
13#include <signal.h>
14#include "hp7221.h"
15
16int currentx = 0;
17int currenty = 0;
18double lowx = 0.0;
19double lowy = 0.0;
20double scale = 1.0;
21
22openpl()
23{
24 int closepl();
25
26 /* catch interupts */
27 signal(SIGINT, closepl);
28 currentx = 0;
29 currenty = 0;
30 printf( "~VR~W" );
31 putMBP( 800, 2000 );
32 putMBP( 7600, 9600 );
33 printf( "~S" );
34 putMBP( XMAX, YMAX );
35 printf( "vA~*z" );
36
37 space(0,0,XMAX,YMAX);
38}