115410Sralph /* 2*19852Sdist * Copyright (c) 1980 Regents of the University of California. 3*19852Sdist * All rights reserved. The Berkeley software License Agreement 4*19852Sdist * specifies the terms and conditions for redistribution. 5*19852Sdist * 6*19852Sdist * @(#)bg.h 5.1 (Berkeley) 04/30/85 7*19852Sdist */ 8*19852Sdist 9*19852Sdist /* 1015410Sralph * Displays plot files on a bbn bitgraph terminal. 1115410Sralph */ 1215410Sralph 1315410Sralph #include <stdio.h> 1415410Sralph #include <math.h> 1515410Sralph 1615410Sralph #define ESC 033 1715410Sralph #define PI 3.141592659 1815410Sralph 1915410Sralph /* The graphics address range is 0..XMAX, 0..YMAX. */ 2015410Sralph #define XMAX 768 2115410Sralph #define YMAX 1024 2215410Sralph #define scaleX(xi) ((int) ((xi - lowx)*scale +0.5)) 2315410Sralph #define scaleY(yi) ((int) ((yi - lowy)*scale +0.5)) 2415410Sralph 2515410Sralph extern int currentx; 2615410Sralph extern int currenty; 2715410Sralph extern double lowx; 2815410Sralph extern double lowy; 2915410Sralph extern double scale; 30