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 PLOTIN 063
  15: #define PLOTOUT 064
  16: # define CR 015
  17: # define FF 014
  18: # define VERTRESP 48
  19: # define HORZRESP 60.
  20: # define HORZRES 6.
  21: # define VERTRES 8.
  22: /* down is line feed, up is reverse oyne feed,
  23:    left is bwckspace, right is space.  48 points per inch
  24:    vertically, 60 horizontally */
  25: 
  26: int xnow, ynow;
  27: int OUTF;
  28: struct sgttyb ITTY, PTTY;
  29: float HEIGHT = 6.0, WIDTH = 6.0, OFFSET = 0.0;
  30: int xscale, xoffset, yscale;
  31: float botx = 0., boty = 0., obotx = 0., oboty = 0.;
  32: float scalex = 1., scaley = 1.;
  33: 
  34: openpl ()
  35: {
  36:     int reset();
  37:         xnow = ynow = 0;
  38:         OUTF = 1;
  39:         printf("\r");
  40:         gtty(OUTF, &ITTY);
  41:         signal (2, reset);
  42:         PTTY = ITTY;
  43:         PTTY.sg_flags &= ~CRMOD;    /* don't map lf */
  44:         stty(OUTF,&PTTY);
  45:         /* initialize constants */
  46:         xscale  = 4096./(HORZRESP * WIDTH);
  47:         yscale = 4096 /(VERTRESP * HEIGHT);
  48:         xoffset = OFFSET * HORZRESP;
  49:         return;
  50: }
  51: 
  52: openvt(){
  53: openpl();
  54: }

Defined functions

openpl defined in line 34; used 1 times
  • in line 53
openvt defined in line 52; never used

Defined variables

HEIGHT defined in line 29; used 1 times
  • in line 47
ITTY defined in line 28; used 3 times
OUTF defined in line 27; used 4 times
PTTY defined in line 28; used 3 times
sccsid defined in line 2; never used
xoffset defined in line 30; used 2 times
xscale defined in line 30; used 2 times
ynow defined in line 26; used 10 times
yscale defined in line 30; used 2 times

Defined macros

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