home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-06-19 | 27.9 KB | 1,091 lines |
- diff -rc gnuplot/term/hp2648.trm gnuplot3.2/term/hp2648.trm
- *** gnuplot/term/hp2648.trm Mon Mar 26 15:02:34 1990
- --- gnuplot3.2/term/hp2648.trm Wed Mar 25 08:00:43 1992
- ***************
- *** 1,6 ****
- /* GNUPLOT - hp2648.trm */
- /*
- ! * Copyright (C) 1990
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- --- 1,10 ----
- + /*
- + * $Id: hp2648.trm,v 3.26 92/03/24 22:34:55 woo Exp Locker: woo $
- + */
- +
- /* GNUPLOT - hp2648.trm */
- /*
- ! * Copyright (C) 1990, 1991, 1992
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- ***************
- *** 22,28 ****
- * AUTHORS
- * Russell Lang
- *
- ! * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
- *
- */
-
- --- 26,32 ----
- * AUTHORS
- * Russell Lang
- *
- ! * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
- *
- */
-
- diff -rc gnuplot/term/hpgl.trm gnuplot3.2/term/hpgl.trm
- *** gnuplot/term/hpgl.trm Sun Jan 5 21:33:33 1992
- --- gnuplot3.2/term/hpgl.trm Wed Mar 25 08:00:44 1992
- ***************
- *** 1,6 ****
- /* GNUPLOT - hpgl.trm */
- /*
- ! * Copyright (C) 1990
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- --- 1,10 ----
- + /*
- + * $Id: hpgl.trm,v 3.26 92/03/24 22:34:56 woo Exp Locker: woo $
- + */
- +
- /* GNUPLOT - hpgl.trm */
- /*
- ! * Copyright (C) 1990, 1991, 1992
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- ***************
- *** 22,28 ****
- * AUTHORS
- * Colin Kelley, Thomas Williams, Russell Lang
- *
- ! * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
- *
- */
-
- --- 26,32 ----
- * AUTHORS
- * Colin Kelley, Thomas Williams, Russell Lang
- *
- ! * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
- *
- */
-
- ***************
- *** 29,34 ****
- --- 33,41 ----
- #define HPGL_XMAX 15200
- #define HPGL_YMAX 10000
-
- + #define PCL_XMAX 10000
- + #define PCL_YMAX 7500
- +
- #define HPGL_XLAST (HPGL_XMAX - 1)
- #define HPGL_YLAST (HPGL_XMAX - 1)
-
- ***************
- *** 38,43 ****
- --- 45,55 ----
- #define HPGL_VTIC (HPGL_YMAX/70)
- #define HPGL_HTIC (HPGL_YMAX/70)
-
- + #define PCL_VCHAR (PCL_YMAX/100*32/10) /* 3.2% */
- + #define PCL_HCHAR (PCL_XMAX/100*12/10) /* 1.2% */
- + #define PCL_VTIC (PCL_YMAX/70)
- + #define PCL_HTIC (PCL_YMAX/70)
- +
- int HPGL_ang = 0;
-
- HPGL_init()
- ***************
- *** 48,72 ****
- */
- }
-
- ! HPLJIII_PORT_init()
- {
- ! fputs("\033E\033&l1X\033&l0O\033%0B;PW0.15\n",outfile);
- }
-
- ! HPLJIII_LAND_init()
- {
- fputs("\033E\033&l1X\033&l1O\033%0B;PW0.15\n",outfile);
- }
-
-
- ! HPLJIII_graphics()
- {
- fprintf(outfile,
- "\033%0B\nIN;\nSC0,%d,0,%d;\nSR%f,%f;\n",
- ! HPGL_XMAX,HPGL_YMAX,
- ! ((double)(HPGL_HCHAR)*200/3/HPGL_XMAX),
- ! ((double)(HPGL_VCHAR)*100/2/HPGL_YMAX) );
- ! /* 1 2 3
- 1. reset to power-up defaults
- 2. set SCaling
- 3. set character size
- --- 60,101 ----
- */
- }
-
- ! PCL_PORT_init()
- {
- ! fputs("\033E\033&l1X\033&l0O\033&2A\033%0B;PW0.15\n",outfile);
- ! /* 1 2 3 4 5 6
- ! 1. reset the printer
- ! 2. one copy
- ! 3. portrait orientation
- ! 4. use letter paper
- ! 5. enter HP-GL/2 with old pen position
- ! 6. Pen Width
- ! */
- }
-
- ! PCL_LAND_init()
- {
- fputs("\033E\033&l1X\033&l1O\033%0B;PW0.15\n",outfile);
- + /*
- + 1 2 3 4 5
- + 1. reset the printer
- + 2. one copy
- + 3. landscape orientation
- + 4. enter HP-GL/2 with old pen position
- + 5. Pen Width
- + */
- }
-
-
- ! PCL_graphics()
- {
- fprintf(outfile,
- "\033%0B\nIN;\nSC0,%d,0,%d;\nSR%f,%f;\n",
- ! PCL_XMAX,PCL_YMAX,
- ! ((double)(PCL_HCHAR)*200/3/PCL_XMAX),
- ! ((double)(PCL_VCHAR)*100/2/PCL_YMAX) );
- ! /* 0 1 2 3
- ! 0. enter HPGL/2 mode
- 1. reset to power-up defaults
- 2. set SCaling
- 3. set character size
- ***************
- *** 90,96 ****
- }
-
-
- ! HPLJIII_text()
- {
- fputs("PU;\nSP0;\n\033.Z\0",outfile);
- /* 1 2 3
- --- 119,125 ----
- }
-
-
- ! PCL_text()
- {
- fputs("PU;\nSP0;\n\033.Z\0",outfile);
- /* 1 2 3
- ***************
- *** 98,104 ****
- 2. park pen
- 3. disable eavesdropping
- */
- ! fputs("\033%0A\033E\n",outfile);
- }
-
- HPGL_text()
- --- 127,138 ----
- 2. park pen
- 3. disable eavesdropping
- */
- ! fputs("\n\033%1A\n\033&l0H\0",outfile);
- ! /* 1 2 3
- ! 1. enter PCL
- ! 2. eject page
- ! 3. reset printer
- ! */
- }
-
- HPGL_text()
- ***************
- *** 156,162 ****
- --- 190,207 ----
- fprintf(outfile,"LB%s\003\n",str);
- }
-
- + PCL_put_text(x,y,str)
- + int x, y;
- + char *str;
- + {
- + if (HPGL_ang == 1)
- + HPGL_move(x + PCL_VCHAR/4,y);
- + else
- + HPGL_move(x,y - PCL_VCHAR/4);
- + fprintf(outfile,"LB%s\003\n",str);
- + }
-
- +
- int HPGL_text_angle(ang)
- int ang;
- {
- ***************
- *** 170,181 ****
- return TRUE;
- }
-
- -
- HPGL_reset()
- {
- }
-
- ! HPLJIII_reset()
- {
- ! fputs("\033%0A\033E\n",outfile);
- }
- --- 215,229 ----
- return TRUE;
- }
-
- HPGL_reset()
- {
- + fprintf(outfile,"PG;\n");
- + /* This HPGL command is ignored in HPGL/2 */
- }
-
- !
- ! PCL_reset()
- {
- ! fputs("\033%0A\033&l0H\033E\n",outfile);
- ! /* PCL mode eject reset */
- }
- diff -rc gnuplot/term/hpljii.trm gnuplot3.2/term/hpljii.trm
- *** gnuplot/term/hpljii.trm Tue Jun 18 10:21:24 1991
- --- gnuplot3.2/term/hpljii.trm Wed Mar 25 08:00:45 1992
- ***************
- *** 1,6 ****
- /* GNUPLOT - hpljii.trm */
- /*
- ! * Copyright (C) 1990
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- --- 1,10 ----
- + /*
- + * $Id: hpljii.trm,v 3.26 92/03/24 22:34:57 woo Exp Locker: woo $
- + */
- +
- /* GNUPLOT - hpljii.trm */
- /*
- ! * Copyright (C) 1990, 1991, 1992
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- ***************
- *** 24,30 ****
- * Russell Lang
- * Maurice Castro
- *
- ! * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
- *
- */
-
- --- 28,34 ----
- * Russell Lang
- * Maurice Castro
- *
- ! * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
- *
- */
-
- diff -rc gnuplot/term/imagen.trm gnuplot3.2/term/imagen.trm
- *** gnuplot/term/imagen.trm Tue Aug 13 15:26:35 1991
- --- gnuplot3.2/term/imagen.trm Wed Mar 25 08:00:46 1992
- ***************
- *** 1,6 ****
- /* GNUPLOT - imagen.trm */
- /*
- ! * Copyright (C) 1990
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- --- 1,10 ----
- + /*
- + * $Id: imagen.trm,v 3.26 92/03/24 22:35:33 woo Exp Locker: woo $
- + */
- +
- /* GNUPLOT - imagen.trm */
- /*
- ! * Copyright (C) 1990, 1991, 1992
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- ***************
- *** 22,28 ****
- * AUTHORS
- * Paul E. McKenney, David Kotz
- *
- ! * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
- *
- */
-
- --- 26,32 ----
- * AUTHORS
- * Paul E. McKenney, David Kotz
- *
- ! * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
- *
- */
-
- diff -rc gnuplot/term/impcodes.h gnuplot3.2/term/impcodes.h
- *** gnuplot/term/impcodes.h Mon Mar 26 15:03:20 1990
- --- gnuplot3.2/term/impcodes.h Wed Mar 25 08:00:46 1992
- ***************
- *** 1,4 ****
- --- 1,8 ----
- /*
- + * $Id: impcodes.h,v 3.26 92/03/24 22:35:32 woo Exp Locker: woo $
- + */
- +
- + /*
- * Copyright (c) 1985 Regents of the University of California.
- * All rights reserved. The Berkeley software License Agreement
- * specifies the terms and conditions for redistribution.
- diff -rc gnuplot/term/iris4d.trm gnuplot3.2/term/iris4d.trm
- *** gnuplot/term/iris4d.trm Fri Jul 12 10:57:02 1991
- --- gnuplot3.2/term/iris4d.trm Wed Mar 25 08:00:47 1992
- ***************
- *** 1,6 ****
- /* GNUPLOT - iris4d.trm */
- /*
- ! * Copyright (C) 1990
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- --- 1,10 ----
- + /*
- + * $Id: iris4d.trm,v 3.26 92/03/24 22:35:35 woo Exp Locker: woo $
- + */
- +
- /* GNUPLOT - iris4d.trm */
- /*
- ! * Copyright (C) 1990, 1991, 1992
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- ***************
- *** 24,30 ****
- * (Applied Research Corporation) 7/1/89
- * INTERNET: merritt@iris613.gsfc.nasa.gov
- *
- ! * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
- *
- */
-
- --- 28,34 ----
- * (Applied Research Corporation) 7/1/89
- * INTERNET: merritt@iris613.gsfc.nasa.gov
- *
- ! * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
- *
- */
-
- diff -rc gnuplot/term/kyo.trm gnuplot3.2/term/kyo.trm
- *** gnuplot/term/kyo.trm Sun Dec 2 22:17:06 1990
- --- gnuplot3.2/term/kyo.trm Wed Mar 25 08:00:48 1992
- ***************
- *** 1,3 ****
- --- 1,7 ----
- + /*
- + * $Id: kyo.trm,v 3.26 92/03/24 22:35:36 woo Exp Locker: woo $
- + */
- +
- /* Prescribe (KYOCERA) driver - Michael Waldor */
- /* Modified for gnuplot 2.0 sk@sun4 24-Apr-1990 13:23 */
- #ifdef PRESCRIBE
- diff -rc gnuplot/term/latex.trm gnuplot3.2/term/latex.trm
- *** gnuplot/term/latex.trm Sun Jan 5 21:33:34 1992
- --- gnuplot3.2/term/latex.trm Wed Mar 25 08:00:49 1992
- ***************
- *** 1,6 ****
- /* GNUPLOT - latex.trm */
- /*
- ! * Copyright (C) 1990
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- --- 1,10 ----
- + /*
- + * $Id: latex.trm,v 3.26 92/03/24 22:35:37 woo Exp Locker: woo $
- + */
- +
- /* GNUPLOT - latex.trm */
- /*
- ! * Copyright (C) 1990, 1991, 1992
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- ***************
- *** 23,29 ****
- * AUTHORS
- * David Kotz, Russell Lang
- *
- ! * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
- *
- */
-
- --- 27,33 ----
- * AUTHORS
- * David Kotz, Russell Lang
- *
- ! * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
- *
- */
-
- ***************
- *** 404,410 ****
- /* first, figure out increments for x and y */
- if (x2 == x1) {
- xinc = 0.0;
- ! yinc = dotspace;
- } else {
- slope = ((float)y2-y1)/((float)x2-x1);
- xinc = dotspace / sqrt(1 + slope*slope) * sign(x2-x1);
- --- 408,414 ----
- /* first, figure out increments for x and y */
- if (x2 == x1) {
- xinc = 0.0;
- ! yinc = (y2-y1>0)?dotspace:-dotspace;
- } else {
- slope = ((float)y2-y1)/((float)x2-x1);
- xinc = dotspace / sqrt(1 + slope*slope) * sign(x2-x1);
- Only in gnuplot3.2/term: next.trm
- diff -rc gnuplot/term/object.h gnuplot3.2/term/object.h
- *** gnuplot/term/object.h Mon Mar 26 15:03:24 1990
- --- gnuplot3.2/term/object.h Wed Mar 25 08:00:49 1992
- ***************
- *** 1,3 ****
- --- 1,7 ----
- + /*
- + * $Id: object.h,v 3.26 92/03/24 22:35:34 woo Exp Locker: woo $
- + */
- +
- /*
- * FIG : Facility for Interactive Generation of figures
- *
- Only in gnuplot3.2/term: pbm.trm
- diff -rc gnuplot/term/pc.trm gnuplot3.2/term/pc.trm
- *** gnuplot/term/pc.trm Sun Aug 4 13:19:18 1991
- --- gnuplot3.2/term/pc.trm Wed Mar 25 08:00:50 1992
- ***************
- *** 1,6 ****
- /* GNUPLOT - pc.trm */
- /*
- ! * Copyright (C) 1990
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- --- 1,10 ----
- + /*
- + * $Id: pc.trm,v 3.26 92/03/24 22:35:39 woo Exp Locker: woo $
- + */
- +
- /* GNUPLOT - pc.trm */
- /*
- ! * Copyright (C) 1990, 1991, 1992
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- ***************
- *** 25,31 ****
- * AUTHORS
- * Colin Kelley, Thomas Williams, William Wilson, Russell Lang
- *
- ! * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
- *
- */
-
- --- 29,35 ----
- * AUTHORS
- * Colin Kelley, Thomas Williams, William Wilson, Russell Lang
- *
- ! * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
- *
- */
-
- diff -rc gnuplot/term/post.trm gnuplot3.2/term/post.trm
- *** gnuplot/term/post.trm Sun Jan 5 21:33:35 1992
- --- gnuplot3.2/term/post.trm Wed Mar 25 08:00:51 1992
- ***************
- *** 1,6 ****
- /* GNUPLOT - post.trm */
- /*
- ! * Copyright (C) 1990
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- --- 1,10 ----
- + /*
- + * $Id: post.trm,v 3.26 92/03/24 22:35:40 woo Exp Locker: woo $
- + */
- +
- /* GNUPLOT - post.trm */
- /*
- ! * Copyright (C) 1990, 1991, 1992
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- ***************
- *** 22,28 ****
- * AUTHORS
- * Russell Lang
- *
- ! * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
- *
- * The 'postscript' driver produces landscape output 10" wide and 7" high.
- * To change font to Times-Roman and font size to 20pts use
- --- 26,32 ----
- * AUTHORS
- * Russell Lang
- *
- ! * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
- *
- * The 'postscript' driver produces landscape output 10" wide and 7" high.
- * To change font to Times-Roman and font size to 20pts use
- diff -rc gnuplot/term/qms.trm gnuplot3.2/term/qms.trm
- *** gnuplot/term/qms.trm Mon Mar 26 15:03:06 1990
- --- gnuplot3.2/term/qms.trm Wed Mar 25 08:00:52 1992
- ***************
- *** 1,6 ****
- /* GNUPLOT - qms.trm */
- /*
- ! * Copyright (C) 1990
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- --- 1,10 ----
- + /*
- + * $Id: qms.trm,v 3.26 92/03/24 22:35:41 woo Exp Locker: woo $
- + */
- +
- /* GNUPLOT - qms.trm */
- /*
- ! * Copyright (C) 1990, 1991, 1992
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- ***************
- *** 22,28 ****
- * AUTHORS
- * Colin Kelley, Thomas Williams, Russell Lang
- *
- ! * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
- *
- */
-
- --- 26,32 ----
- * AUTHORS
- * Colin Kelley, Thomas Williams, Russell Lang
- *
- ! * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
- *
- */
-
- diff -rc gnuplot/term/regis.trm gnuplot3.2/term/regis.trm
- *** gnuplot/term/regis.trm Mon Mar 26 15:03:08 1990
- --- gnuplot3.2/term/regis.trm Wed Mar 25 08:00:53 1992
- ***************
- *** 1,6 ****
- /* GNUPLOT - regis.trm */
- /*
- ! * Copyright (C) 1990
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- --- 1,10 ----
- + /*
- + * $Id: regis.trm,v 3.26 92/03/24 22:35:42 woo Exp Locker: woo $
- + */
- +
- /* GNUPLOT - regis.trm */
- /*
- ! * Copyright (C) 1990, 1991, 1992
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- ***************
- *** 22,28 ****
- * AUTHORS
- * Colin Kelley, Thomas Williams
- *
- ! * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
- *
- */
-
- --- 26,32 ----
- * AUTHORS
- * Colin Kelley, Thomas Williams
- *
- ! * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
- *
- */
-
- diff -rc gnuplot/term/sun.trm gnuplot3.2/term/sun.trm
- *** gnuplot/term/sun.trm Mon Mar 26 15:02:46 1990
- --- gnuplot3.2/term/sun.trm Wed Mar 25 08:00:54 1992
- ***************
- *** 1,6 ****
- /* GNUPLOT - sun.trm */
- /*
- ! * Copyright (C) 1990
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- --- 1,10 ----
- + /*
- + * $Id: sun.trm,v 3.26 92/03/24 22:35:43 woo Exp Locker: woo $
- + */
- +
- /* GNUPLOT - sun.trm */
- /*
- ! * Copyright (C) 1990, 1991, 1992
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- ***************
- *** 22,28 ****
- * AUTHORS
- * Maurice Castro
- *
- ! * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
- *
- */
-
- --- 26,32 ----
- * AUTHORS
- * Maurice Castro
- *
- ! * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
- *
- */
-
- diff -rc gnuplot/term/t410x.trm gnuplot3.2/term/t410x.trm
- *** gnuplot/term/t410x.trm Tue Sep 18 14:59:16 1990
- --- gnuplot3.2/term/t410x.trm Wed Mar 25 08:00:54 1992
- ***************
- *** 1,6 ****
- /* GNUPLOT - t410x.trm */
- /*
- ! * Copyright (C) 1990
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- --- 1,10 ----
- + /*
- + * $Id: t410x.trm,v 3.26 92/03/24 22:35:44 woo Exp Locker: woo $
- + */
- +
- /* GNUPLOT - t410x.trm */
- /*
- ! * Copyright (C) 1990, 1991, 1992
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- ***************
- *** 21,27 ****
- * AUTHORS
- * Colin Kelley, Thomas Williams
- *
- ! * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
- *
- */
-
- --- 25,31 ----
- * AUTHORS
- * Colin Kelley, Thomas Williams
- *
- ! * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
- *
- */
-
- diff -rc gnuplot/term/tek.trm gnuplot3.2/term/tek.trm
- *** gnuplot/term/tek.trm Tue Jun 18 10:00:02 1991
- --- gnuplot3.2/term/tek.trm Wed Mar 25 08:00:55 1992
- ***************
- *** 1,6 ****
- /* GNUPLOT - tek.trm */
- /*
- ! * Copyright (C) 1990
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- --- 1,10 ----
- + /*
- + * $Id: tek.trm,v 3.26 92/03/24 22:35:45 woo Exp Locker: woo $
- + */
- +
- /* GNUPLOT - tek.trm */
- /*
- ! * Copyright (C) 1990, 1991, 1992
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- ***************
- *** 23,29 ****
- * AUTHORS
- * Colin Kelley, Thomas Williams, Russell Lang
- *
- ! * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
- *
- */
-
- --- 27,33 ----
- * AUTHORS
- * Colin Kelley, Thomas Williams, Russell Lang
- *
- ! * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
- *
- */
-
- ***************
- *** 356,359 ****
- {
- fprintf(outfile,"\033[?38l");
- }
- ! #endif LN03P
- --- 360,363 ----
- {
- fprintf(outfile,"\033[?38l");
- }
- ! #endif /* LN03P */
- diff -rc gnuplot/term/unixpc.trm gnuplot3.2/term/unixpc.trm
- *** gnuplot/term/unixpc.trm Fri Jul 26 09:36:50 1991
- --- gnuplot3.2/term/unixpc.trm Wed Mar 25 08:00:56 1992
- ***************
- *** 1,6 ****
- /* GNUPLOT - unixpc.trm */
- /*
- ! * Copyright (C) 1990
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- --- 1,10 ----
- + /*
- + * $Id: unixpc.trm,v 3.26 92/03/24 22:35:46 woo Exp Locker: woo $
- + */
- +
- /* GNUPLOT - unixpc.trm */
- /*
- ! * Copyright (C) 1990, 1991, 1992
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- ***************
- *** 22,28 ****
- * AUTHORS
- * John Campbell
- *
- ! * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
- *
- */
-
- --- 26,32 ----
- * AUTHORS
- * John Campbell
- *
- ! * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
- *
- */
-
- diff -rc gnuplot/term/unixplot.trm gnuplot3.2/term/unixplot.trm
- *** gnuplot/term/unixplot.trm Mon Mar 26 15:03:16 1990
- --- gnuplot3.2/term/unixplot.trm Wed Mar 25 08:00:57 1992
- ***************
- *** 1,6 ****
- /* GNUPLOT -- unixplot.trm */
- /*
- ! * Copyright (C) 1990
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- --- 1,10 ----
- + /*
- + * $Id: unixplot.trm,v 3.26 92/03/24 22:35:47 woo Exp Locker: woo $
- + */
- +
- /* GNUPLOT -- unixplot.trm */
- /*
- ! * Copyright (C) 1990, 1991, 1992
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- ***************
- *** 22,28 ****
- * AUTHORS
- * Colin Kelley, Thomas Williams, Russell Lang
- *
- ! * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
- *
- */
-
- --- 26,32 ----
- * AUTHORS
- * Colin Kelley, Thomas Williams, Russell Lang
- *
- ! * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
- *
- */
-
- diff -rc gnuplot/term/v384.trm gnuplot3.2/term/v384.trm
- *** gnuplot/term/v384.trm Mon Mar 26 15:03:18 1990
- --- gnuplot3.2/term/v384.trm Wed Mar 25 08:00:58 1992
- ***************
- *** 1,6 ****
- /* GNUPLOT - v384.trm */
- /*
- ! * Copyright (C) 1990
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- --- 1,10 ----
- + /*
- + * $Id: v384.trm,v 3.26 92/03/24 22:35:48 woo Exp Locker: woo $
- + */
- +
- /* GNUPLOT - v384.trm */
- /*
- ! * Copyright (C) 1990, 1991, 1992
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- ***************
- *** 22,28 ****
- * AUTHORS
- * roland@moncskermit.OZ (Roland Yap)
- *
- ! * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
- *
- */
-
- --- 26,32 ----
- * AUTHORS
- * roland@moncskermit.OZ (Roland Yap)
- *
- ! * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
- *
- */
-
- diff -rc gnuplot/term/vws.trm gnuplot3.2/term/vws.trm
- *** gnuplot/term/vws.trm Sun Sep 8 09:49:56 1991
- --- gnuplot3.2/term/vws.trm Wed Mar 25 08:00:59 1992
- ***************
- *** 1,6 ****
- /* GNUPLOT - vws.trm */
- /*
- ! * Copyright (C) 1990
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- --- 1,10 ----
- + /*
- + * $Id: vws.trm,v 3.26 92/03/24 22:35:51 woo Exp Locker: woo $
- + */
- +
- /* GNUPLOT - vws.trm */
- /*
- ! * Copyright (C) 1990, 1991, 1992
- *
- * Permission to use, copy, and distribute this software and its
- * documentation for any purpose with or without fee is hereby granted,
- ***************
- *** 23,29 ****
- * Walter Speth
- * BITNET: SPETH@DBNPIB5
- *
- ! * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
- *
- */
-
- --- 27,33 ----
- * Walter Speth
- * BITNET: SPETH@DBNPIB5
- *
- ! * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
- *
- */
-
- diff -rc gnuplot/term/x11.trm gnuplot3.2/term/x11.trm
- *** gnuplot/term/x11.trm Thu Jul 25 09:12:23 1991
- --- gnuplot3.2/term/x11.trm Wed Mar 25 08:00:59 1992
- ***************
- *** 1,4 ****
- --- 1,8 ----
- /*
- + * $Id: x11.trm,v 3.26 92/03/24 22:35:49 woo Exp Locker: woo $
- + */
- +
- + /*
- * x11.trm --- inboard terminal driver for X11
- */
-
- ***************
- *** 11,18 ****
- #define X11_VTIC (X11_YMAX/100)
- #define X11_HTIC (X11_XMAX/150)
-
- ! #define X11_nopts 22
- char X11_opts[X11_nopts][20] = {
- "-iconic", "-rv", "-reverse", "+rv", "-synchronous",
- "-display", "-geometry", "-bg", "-background", "-bd", "-bordercolor", "-bw",
- "-borderwidth", "-fg", "-foreground", "-fn", "-font", "-name",
- --- 15,23 ----
- #define X11_VTIC (X11_YMAX/100)
- #define X11_HTIC (X11_XMAX/150)
-
- ! #define X11_nopts 25
- char X11_opts[X11_nopts][20] = {
- + "-mono", "-gray", "-clear",
- "-iconic", "-rv", "-reverse", "+rv", "-synchronous",
- "-display", "-geometry", "-bg", "-background", "-bd", "-bordercolor", "-bw",
- "-borderwidth", "-fg", "-foreground", "-fn", "-font", "-name",
- ***************
- *** 19,24 ****
- --- 24,30 ----
- "-selectionTimeout", "-title", "-xnllanguage", "-xrm"
- };
- int X11_optarg[X11_nopts] = {
- + 0, 0, 0,
- 0, 0, 0, 0, 0,
- 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1,
- ***************
- *** 25,34 ****
- 1, 1, 1, 1
- };
-
- ! FILE *X11_pipe, *popen();
- ! char X11_command[1024]= "gnuplot_x11 -name gnuplot";
-
- -
- /* X11_args - scan gnuplot command line for standard X Toolkit options */
-
- X11_args(argc, argv) int argc; char *argv[]; {
- --- 31,39 ----
- 1, 1, 1, 1
- };
-
- ! FILE *X11_ipc;
- ! char X11_command[1024]= "gnuplot_x11";
-
- /* X11_args - scan gnuplot command line for standard X Toolkit options */
-
- X11_args(argc, argv) int argc; char *argv[]; {
- ***************
- *** 54,83 ****
- return(nx11);
- }
-
- #ifdef ULTRIX_KLUDGE
- ! #define X11_ULTRIX_KLUDGE fprintf (X11_pipe, "E\n"); fflush (X11_pipe);
- ! #else
- ! #define X11_ULTRIX_KLUDGE
- #endif
-
- ! X11_init() { X11_pipe = popen(X11_command, "w"); }
-
- ! X11_reset() { fprintf(X11_pipe, "R\n"); fflush(X11_pipe); pclose(X11_pipe); }
-
- ! X11_text() { fprintf(X11_pipe, "E\n"); fflush(X11_pipe); X11_ULTRIX_KLUDGE }
-
- ! X11_graphics() { fprintf(X11_pipe, "G\n"); }
-
- ! X11_move(x,y) unsigned int x,y; { fprintf(X11_pipe, "M%04d%04d\n", x, y); }
-
- ! X11_vector(x,y) unsigned int x,y; { fprintf(X11_pipe, "V%04d%04d\n", x, y); }
-
- ! X11_linetype(lt) int lt; { fprintf(X11_pipe, "L%04d\n", lt); }
-
- X11_put_text(x,y,str) unsigned int x,y; char str[]; {
- ! fprintf(X11_pipe, "T%04d%04d%s\n", x, y, str);
- }
- X11_justify_text(mode) enum JUSTIFY mode; {
- ! fprintf(X11_pipe, "J%04d\n", mode);
- return(TRUE);
- }
- --- 59,130 ----
- return(nx11);
- }
-
- + #ifndef CRIPPLED_SELECT
- + /*-----------------------------------------------------------------------------
- + * use pipe IPC on most platforms
- + *---------------------------------------------------------------------------*/
- + FILE *popen();
- +
- + X11_init() { X11_ipc = popen(X11_command, "w"); }
- +
- + X11_graphics() { fprintf(X11_ipc, "G\n"); }
- +
- + X11_text() {
- + fprintf(X11_ipc, "E\n"); fflush(X11_ipc);
- #ifdef ULTRIX_KLUDGE
- ! fprintf(X11_ipc, "E\n"); fflush(X11_ipc);
- #endif
- + }
-
- ! X11_reset() { fprintf(X11_ipc, "R\n"); fflush(X11_ipc); pclose(X11_ipc); }
-
- ! #else /* CRIPPLED_SELECT */
- ! /*-----------------------------------------------------------------------------
- ! * use file IPC on the others
- ! *---------------------------------------------------------------------------*/
-
- ! char X11_tmp[32], X11_tmp0[32], X11_shutdown[32];
- ! int X11_pid;
-
- ! X11_init() {
- ! if (!(X11_pid = fork())) {
- ! execl("/bin/sh", "sh", "-c", X11_command, NULL);
- ! _exit(1);
- ! }
- ! sprintf(X11_tmp, "/tmp/Gnuplot_%d", X11_pid);
- ! sprintf(X11_tmp0, "%s-", X11_tmp);
- ! sprintf(X11_shutdown, "echo R >%s",X11_tmp);
- ! }
-
- ! X11_graphics() {
- ! X11_ipc = fopen(X11_tmp0, "w");
- ! if (!X11_ipc) { perror(X11_tmp0); system(X11_shutdown); exit(1); }
- ! fprintf(X11_ipc, "G\n");
- ! }
-
- ! X11_text() {
- ! fprintf(X11_ipc, "E\n");
- ! #ifdef ULTRIX_KLUDGE
- ! fprintf(X11_ipc, "E\n");
- ! #endif
- ! fclose(X11_ipc);
- ! rename(X11_tmp0, X11_tmp);
- ! }
-
- ! X11_reset() { system(X11_shutdown); }
-
- + #endif /* CRIPPLED_SELECT */ /*---------------------------------------------*/
- +
- + X11_move(x,y) unsigned int x,y; { fprintf(X11_ipc, "M%04d%04d\n", x, y); }
- +
- + X11_vector(x,y) unsigned int x,y; { fprintf(X11_ipc, "V%04d%04d\n", x, y); }
- +
- + X11_linetype(lt) int lt; { fprintf(X11_ipc, "L%04d\n", lt); }
- +
- X11_put_text(x,y,str) unsigned int x,y; char str[]; {
- ! fprintf(X11_ipc, "T%04d%04d%s\n", x, y, str);
- }
- X11_justify_text(mode) enum JUSTIFY mode; {
- ! fprintf(X11_ipc, "J%04d\n", mode);
- return(TRUE);
- }
-