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:  *	@(#)hp2648.h	5.1.1 (2.11BSD GTE) 1/1/94
   7:  *
   8:  *
   9:  * Displays plot files on an hp2648a graphics terminals.  I have heard
  10:  * that all hp plotting devices use the same control sequences, so this
  11:  * might work for all hp devices capable of plotting.
  12:  */
  13: 
  14: #include <stdio.h>
  15: 
  16: #ifdef pdp11
  17: #include <sys/ioctl.h>
  18: #endif
  19: 
  20: #define TERMINAL "/dev/tty"
  21: 
  22: #define ENQ 05
  23: #define ACK 06
  24: #define ESC 033
  25: #define GRAPHIC '*'
  26: #define MODE    'm'
  27: #define PLOT    'p'
  28: #define DISPLAY 'd'
  29: #define PENUP   'a'
  30: #define BINARY  'i'
  31: #define ASCII   'f'
  32: #define CR  '\n'
  33: 
  34: #define TRUE  1
  35: #define FALSE 0
  36: 
  37: #define xsc(xi) ((int) (xi - lowx) * scalex + 0.5)
  38: #define ysc(yi) ((int) (yi - lowy) * scaley + 0.5)
  39: 
  40: extern int shakehands;
  41: 
  42: extern int currentx;
  43: extern int currenty;
  44: extern int buffcount;
  45: extern int fildes;
  46: extern float lowx;
  47: extern float lowy;
  48: extern float scalex;
  49: extern float scaley;
  50: extern struct sgttyb sarg;

Defined macros

ACK defined in line 23; used 1 times
ASCII defined in line 31; never used
CR defined in line 32; never used
ENQ defined in line 22; used 1 times
FALSE defined in line 35; used 1 times
MODE defined in line 26; used 1 times
PENUP defined in line 29; used 1 times
TERMINAL defined in line 20; used 1 times

Usage of this include

Last modified: 1994-01-11
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2573
Valid CSS Valid XHTML 1.0 Strict