atariman@bsu-cs.UUCP (Jeff Scott) (01/30/88)
Below is a patch file to modify three of the files in the IFS Explorer 1.0 to allow the pictures to be displayed on a Digital VT240 terminal. This patch file modifies Makefile to change the device to VT240, and comment out the LIB option since with this modification the plot library is not used. The patch file then modifies dev.h to add the VT240 definitions. Finally it modifies the ifs.c file to put the VT240 ReGIS routines directly into the program. This is a hacked diff file that is to be used with the patch program to modify the three files listed above. You might want to make back-ups of the files that will be changed so you will have unmodified versions of the files for any modifications from the author. -- ._, Jeff Scott | CI$:[73217,563] | Delphi:JEFFSCOTT ./ | \, Wilson Hall #45 | UUCP: atariman@bsu-cs.UUCP `\/|\/' Muncie(where?), IN | <backbone>!---\ uunet!---\ `-' 47306 | ihpn4!{iuvax|pur-ee}!bsu-cs!atariman "Everyday that goes by another angry missle points toward the sky." -- ----8<-----8<-----8<-----8<-----C-U-T--H-E-R-E----->8----->8----->8----->8---- Index: Makefile 12,13c12,13 < DEV = VT240 < #LIB = -l4014 --- > DEV = GENERIC > LIB = -l4014 Index: dev.h 51,62d50 < < /* Digital VT240 terminal */ < < #ifdef VT240 < #define XMIN 0 < #define YMIN 1 < #define XMAX 799 < #define YMAX 479 < #define XRES 800 < #define YRES 480 < #define ONO < #endif Index: ifs.c 8,10d7 < * Converted for use with Digital VT240 in ReGIS mode terminals by Jeff Scott < * (atariman@bsu-cs.UUCP) < * 51c48 < --- > 148,150c145,148 < < printf("%c\%cPp", 27, 27); /* Go out and back into ReGIS mode */ < printf("s(e)"); /* Clear screen in ReGIS */ --- > > space(XMIN, YMIN, XMAX, YMAX); > openpl(); > erase(); 170c168 < printf("%c\\", 27); /* Exit ReGIS mode */ --- > closepl(); 178,181c176 < < /* Reverse y coords for ReGIS screen output */ < y = (480 - y); < printf("p[%d,%d]v[%d,%d]",x,y,x,y); /* Plot point in ReGIS */ --- > point(x, y);