115500Sralph /* 2*19972Sdist * Copyright (c) 1980 Regents of the University of California. 3*19972Sdist * All rights reserved. The Berkeley software License Agreement 4*19972Sdist * specifies the terms and conditions for redistribution. 5*19972Sdist * 6*19972Sdist * @(#)gigi.h 5.1 (Berkeley) 05/07/85 7*19972Sdist */ 8*19972Sdist 9*19972Sdist /* 1015500Sralph * Displays plot files on a gigi "graphics" terminal. 1115500Sralph */ 1215500Sralph 1315500Sralph #include <stdio.h> 1415500Sralph #include <math.h> 1515500Sralph 1615500Sralph #define ESC 033 1715500Sralph #define PI 3.141592659 1815500Sralph 1915500Sralph /* 2015500Sralph * The graphics address range is 0..XMAX, YMAX..0 where (0, YMAX) is the 2115500Sralph * lower left corner. 2215500Sralph */ 2315500Sralph #define XMAX 767 2415500Sralph #define YMAX 479 2515500Sralph #define xsc(xi) ((int) ((xi -lowx)*scalex +0.5)) 2615500Sralph #define ysc(yi) ((int) (YMAX - (yi - lowy)*scaley +0.5)) 2715500Sralph 2815500Sralph extern int currentx; 2915500Sralph extern int currenty; 3015500Sralph extern double lowx; 3115500Sralph extern double lowy; 3215500Sralph extern double scalex; 3315500Sralph extern double scaley; 34