1: #ifndef lint
   2: static char sccsid[] = "@(#)open.c	4.1 (Berkeley) 6/27/83";
   3: #endif
   4: 
   5: #
   6: #include <sgtty.h>
   7: /* gsi plotting output routines */
   8: # define DOWN 012
   9: # define UP 013
  10: # define LEFT 010
  11: # define RIGHT 040
  12: # define BEL 007
  13: # define ACK 006
  14: # define CR 015
  15: # define FF 014
  16: # define VERTRESP 48
  17: # define HORZRESP 60.
  18: # define HORZRES 6.
  19: # define VERTRES 8.
  20: /* down is line feed, up is reverse oyne feed,
  21:    left is bwckspace, right is space.  48 points per inch
  22:    vertically, 60 horizontally */
  23: 
  24: int xnow, ynow;
  25: int OUTF;
  26: struct sgttyb ITTY, PTTY;
  27: float HEIGHT = 6.0, WIDTH = 6.0, OFFSET = 0.0;
  28: int xscale, xoffset, yscale;
  29: float botx = 0., boty = 0., obotx = 0., oboty = 0.;
  30: float scalex = 1., scaley = 1.;
  31: 
  32: openpl ()
  33: {
  34:     int reset();
  35:         xnow = ynow = 0;
  36:         OUTF = 1;
  37:         printf("\r");
  38:         gtty(OUTF, &ITTY);
  39:         signal (2, reset);
  40:         PTTY = ITTY;
  41:         PTTY.sg_flags &= ~CRMOD;    /* don't map lf */
  42:         /* initialize constants */
  43:         xscale  = 4096./(HORZRESP * WIDTH);
  44:         yscale = 4096 /(VERTRESP * HEIGHT);
  45:         xoffset = OFFSET * HORZRESP;
  46:         return;
  47: }
  48: 
  49: openvt(){
  50: openpl();
  51: }

Defined functions

openpl defined in line 32; used 1 times
  • in line 50
openvt defined in line 49; never used

Defined variables

HEIGHT defined in line 27; used 1 times
  • in line 44
ITTY defined in line 26; used 3 times
OUTF defined in line 25; used 4 times
PTTY defined in line 26; used 3 times
sccsid defined in line 2; never used
xoffset defined in line 28; used 2 times
xscale defined in line 28; used 2 times
ynow defined in line 24; used 8 times
yscale defined in line 28; used 2 times

Defined macros

ACK defined in line 13; never used
BEL defined in line 12; never used
CR defined in line 14; never used
DOWN defined in line 8; never used
FF defined in line 15; never used
HORZRES defined in line 18; never used
HORZRESP defined in line 17; used 2 times
LEFT defined in line 10; never used
RIGHT defined in line 11; never used
UP defined in line 9; never used
VERTRES defined in line 19; never used
VERTRESP defined in line 16; used 1 times
  • in line 44
Last modified: 1987-02-18
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1412
Valid CSS Valid XHTML 1.0 Strict