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:  *	@(#)dumb.h	5.1.1 (2.11BSD GTE) 1/1/94
   7:  *
   8:  *
   9:  * This accepts plot file formats and produces the appropriate plots
  10:  * for dumb terminals.  It can also be used for printing terminals and
  11:  * lineprinter listings, although there is no way to specify number of
  12:  * lines and columns different from your terminal.  This would be easy
  13:  * to change, and is left as an exercise for the reader.
  14:  */
  15: 
  16: #include <math.h>
  17: 
  18: #define scale(x,y) y = LINES-1-(LINES*y/rangeY +minY); x = COLS*x/rangeX + minX
  19: 
  20: extern int minX, rangeX;    /* min and range of x */
  21: extern int minY, rangeY;    /* min and range of y */
  22: 
  23: extern int currentx, currenty;
  24: extern int COLS, LINES;
  25: 
  26: /* A very large screen! (probably should use malloc) */
  27: #define MAXCOLS     132
  28: #define MAXLINES    90
  29: 
  30: extern char screenmat[MAXCOLS][MAXLINES];
Last modified: 1994-01-11
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2327
Valid CSS Valid XHTML 1.0 Strict