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: 
   7: #ifndef lint
   8: static char sccsid[] = "@(#)open.c	5.1 (Berkeley) 5/7/85";
   9: #endif not lint
  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: }

Defined functions

openpl defined in line 28; never used

Defined variables

sccsid defined in line 8; never used
Last modified: 1987-02-18
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2704
Valid CSS Valid XHTML 1.0 Strict