home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume30 / gnuplot3 / patch02a / patch.7 < prev    next >
Encoding:
Text File  |  1992-06-19  |  27.9 KB  |  1,091 lines

  1. diff -rc gnuplot/term/hp2648.trm gnuplot3.2/term/hp2648.trm
  2. *** gnuplot/term/hp2648.trm    Mon Mar 26 15:02:34 1990
  3. --- gnuplot3.2/term/hp2648.trm    Wed Mar 25 08:00:43 1992
  4. ***************
  5. *** 1,6 ****
  6.   /* GNUPLOT -  hp2648.trm */
  7.   /*
  8. !  * Copyright (C) 1990   
  9.    *
  10.    * Permission to use, copy, and distribute this software and its
  11.    * documentation for any purpose with or without fee is hereby granted, 
  12. --- 1,10 ----
  13. + /*
  14. +  * $Id: hp2648.trm,v 3.26 92/03/24 22:34:55 woo Exp Locker: woo $
  15. +  */
  16.   /* GNUPLOT -  hp2648.trm */
  17.   /*
  18. !  * Copyright (C) 1990, 1991, 1992   
  19.    *
  20.    * Permission to use, copy, and distribute this software and its
  21.    * documentation for any purpose with or without fee is hereby granted, 
  22. ***************
  23. *** 22,28 ****
  24.    * AUTHORS
  25.    *  Russell Lang
  26.    * 
  27. !  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  28.    * 
  29.    */
  30.   
  31. --- 26,32 ----
  32.    * AUTHORS
  33.    *  Russell Lang
  34.    * 
  35. !  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  36.    * 
  37.    */
  38.   
  39. diff -rc gnuplot/term/hpgl.trm gnuplot3.2/term/hpgl.trm
  40. *** gnuplot/term/hpgl.trm    Sun Jan  5 21:33:33 1992
  41. --- gnuplot3.2/term/hpgl.trm    Wed Mar 25 08:00:44 1992
  42. ***************
  43. *** 1,6 ****
  44.   /* GNUPLOT - hpgl.trm */
  45.   /*
  46. !  * Copyright (C) 1990   
  47.    *
  48.    * Permission to use, copy, and distribute this software and its
  49.    * documentation for any purpose with or without fee is hereby granted, 
  50. --- 1,10 ----
  51. + /*
  52. +  * $Id: hpgl.trm,v 3.26 92/03/24 22:34:56 woo Exp Locker: woo $
  53. +  */
  54.   /* GNUPLOT - hpgl.trm */
  55.   /*
  56. !  * Copyright (C) 1990, 1991, 1992   
  57.    *
  58.    * Permission to use, copy, and distribute this software and its
  59.    * documentation for any purpose with or without fee is hereby granted, 
  60. ***************
  61. *** 22,28 ****
  62.    * AUTHORS
  63.    *  Colin Kelley, Thomas Williams, Russell Lang
  64.    * 
  65. !  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  66.    * 
  67.    */
  68.   
  69. --- 26,32 ----
  70.    * AUTHORS
  71.    *  Colin Kelley, Thomas Williams, Russell Lang
  72.    * 
  73. !  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  74.    * 
  75.    */
  76.   
  77. ***************
  78. *** 29,34 ****
  79. --- 33,41 ----
  80.   #define HPGL_XMAX 15200
  81.   #define HPGL_YMAX 10000
  82.   
  83. + #define PCL_XMAX 10000
  84. + #define PCL_YMAX  7500
  85.   #define HPGL_XLAST (HPGL_XMAX - 1)
  86.   #define HPGL_YLAST (HPGL_XMAX - 1)
  87.   
  88. ***************
  89. *** 38,43 ****
  90. --- 45,55 ----
  91.   #define HPGL_VTIC    (HPGL_YMAX/70)        
  92.   #define HPGL_HTIC    (HPGL_YMAX/70)        
  93.   
  94. + #define PCL_VCHAR    (PCL_YMAX/100*32/10) /* 3.2% */
  95. + #define PCL_HCHAR    (PCL_XMAX/100*12/10) /* 1.2% */
  96. + #define PCL_VTIC    (PCL_YMAX/70)        
  97. + #define PCL_HTIC    (PCL_YMAX/70)        
  98.   int HPGL_ang = 0;
  99.   
  100.   HPGL_init()
  101. ***************
  102. *** 48,72 ****
  103.   */
  104.   }
  105.   
  106. ! HPLJIII_PORT_init()
  107.   {
  108. !       fputs("\033E\033&l1X\033&l0O\033%0B;PW0.15\n",outfile);
  109.   }
  110.   
  111. ! HPLJIII_LAND_init()
  112.   {
  113.       fputs("\033E\033&l1X\033&l1O\033%0B;PW0.15\n",outfile);
  114.   }
  115.   
  116.   
  117. ! HPLJIII_graphics()
  118.   {
  119.       fprintf(outfile,
  120.       "\033%0B\nIN;\nSC0,%d,0,%d;\nSR%f,%f;\n",
  121. !         HPGL_XMAX,HPGL_YMAX,
  122. !         ((double)(HPGL_HCHAR)*200/3/HPGL_XMAX),
  123. !         ((double)(HPGL_VCHAR)*100/2/HPGL_YMAX) );
  124. ! /*     1    2             3 
  125.       1. reset to power-up defaults
  126.       2. set SCaling
  127.       3. set character size
  128. --- 60,101 ----
  129.   */
  130.   }
  131.   
  132. ! PCL_PORT_init()
  133.   {
  134. !       fputs("\033E\033&l1X\033&l0O\033&2A\033%0B;PW0.15\n",outfile);
  135. ! /*           1      2       3       4     5     6
  136. !     1. reset the printer
  137. !     2. one copy
  138. !     3. portrait orientation
  139. !     4. use letter paper
  140. !     5. enter HP-GL/2 with old pen position
  141. !     6. Pen Width
  142. ! */
  143.   }
  144.   
  145. ! PCL_LAND_init()
  146.   {
  147.       fputs("\033E\033&l1X\033&l1O\033%0B;PW0.15\n",outfile);
  148. + /*
  149. +                  1      2       3       4     5
  150. +     1. reset the printer
  151. +     2. one copy
  152. +     3. landscape orientation
  153. +     4. enter HP-GL/2 with old pen position
  154. +     5. Pen Width
  155. + */
  156.   }
  157.   
  158.   
  159. ! PCL_graphics()
  160.   {
  161.       fprintf(outfile,
  162.       "\033%0B\nIN;\nSC0,%d,0,%d;\nSR%f,%f;\n",
  163. !         PCL_XMAX,PCL_YMAX,
  164. !         ((double)(PCL_HCHAR)*200/3/PCL_XMAX),
  165. !         ((double)(PCL_VCHAR)*100/2/PCL_YMAX) );
  166. ! /*     0         1    2             3 
  167. !     0. enter HPGL/2 mode
  168.       1. reset to power-up defaults
  169.       2. set SCaling
  170.       3. set character size
  171. ***************
  172. *** 90,96 ****
  173.   }
  174.   
  175.   
  176. ! HPLJIII_text()
  177.   {
  178.       fputs("PU;\nSP0;\n\033.Z\0",outfile);
  179.   /*           1    2     3
  180. --- 119,125 ----
  181.   }
  182.   
  183.   
  184. ! PCL_text()
  185.   {
  186.       fputs("PU;\nSP0;\n\033.Z\0",outfile);
  187.   /*           1    2     3
  188. ***************
  189. *** 98,104 ****
  190.       2. park pen
  191.       3. disable eavesdropping
  192.   */
  193. !     fputs("\033%0A\033E\n",outfile);
  194.   }
  195.   
  196.   HPGL_text()
  197. --- 127,138 ----
  198.       2. park pen
  199.       3. disable eavesdropping
  200.   */
  201. !     fputs("\n\033%1A\n\033&l0H\0",outfile);
  202. ! /*               1    2      3
  203. !     1. enter PCL
  204. !     2. eject page
  205. !     3. reset printer
  206. ! */
  207.   }
  208.   
  209.   HPGL_text()
  210. ***************
  211. *** 156,162 ****
  212. --- 190,207 ----
  213.       fprintf(outfile,"LB%s\003\n",str);
  214.   }
  215.   
  216. + PCL_put_text(x,y,str)
  217. + int x, y;
  218. + char *str;
  219. + {
  220. +         if (HPGL_ang == 1)
  221. +                 HPGL_move(x + PCL_VCHAR/4,y);
  222. +         else
  223. +                 HPGL_move(x,y - PCL_VCHAR/4);
  224. +         fprintf(outfile,"LB%s\003\n",str);
  225. + }
  226.   
  227.   int HPGL_text_angle(ang)
  228.   int ang;
  229.   {
  230. ***************
  231. *** 170,181 ****
  232.       return TRUE;
  233.   }
  234.   
  235.   HPGL_reset()
  236.   {
  237.   }
  238.   
  239. ! HPLJIII_reset()
  240.   {
  241. !     fputs("\033%0A\033E\n",outfile);
  242.   }
  243. --- 215,229 ----
  244.       return TRUE;
  245.   }
  246.   
  247.   HPGL_reset()
  248.   {
  249. +        fprintf(outfile,"PG;\n");
  250. +        /*  This HPGL command is ignored in HPGL/2 */
  251.   }
  252.   
  253. ! PCL_reset()
  254.   {
  255. !     fputs("\033%0A\033&l0H\033E\n",outfile);
  256. ! /*         PCL mode   eject reset  */
  257.   }
  258. diff -rc gnuplot/term/hpljii.trm gnuplot3.2/term/hpljii.trm
  259. *** gnuplot/term/hpljii.trm    Tue Jun 18 10:21:24 1991
  260. --- gnuplot3.2/term/hpljii.trm    Wed Mar 25 08:00:45 1992
  261. ***************
  262. *** 1,6 ****
  263.   /* GNUPLOT - hpljii.trm */
  264.   /*
  265. !  * Copyright (C) 1990   
  266.    *
  267.    * Permission to use, copy, and distribute this software and its
  268.    * documentation for any purpose with or without fee is hereby granted, 
  269. --- 1,10 ----
  270. + /*
  271. +  * $Id: hpljii.trm,v 3.26 92/03/24 22:34:57 woo Exp Locker: woo $
  272. +  */
  273.   /* GNUPLOT - hpljii.trm */
  274.   /*
  275. !  * Copyright (C) 1990, 1991, 1992   
  276.    *
  277.    * Permission to use, copy, and distribute this software and its
  278.    * documentation for any purpose with or without fee is hereby granted, 
  279. ***************
  280. *** 24,30 ****
  281.    *  Russell Lang
  282.    *  Maurice Castro
  283.    *
  284. !  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  285.    * 
  286.    */
  287.   
  288. --- 28,34 ----
  289.    *  Russell Lang
  290.    *  Maurice Castro
  291.    *
  292. !  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  293.    * 
  294.    */
  295.   
  296. diff -rc gnuplot/term/imagen.trm gnuplot3.2/term/imagen.trm
  297. *** gnuplot/term/imagen.trm    Tue Aug 13 15:26:35 1991
  298. --- gnuplot3.2/term/imagen.trm    Wed Mar 25 08:00:46 1992
  299. ***************
  300. *** 1,6 ****
  301.   /* GNUPLOT - imagen.trm */
  302.   /*
  303. !  * Copyright (C) 1990   
  304.    *
  305.    * Permission to use, copy, and distribute this software and its
  306.    * documentation for any purpose with or without fee is hereby granted, 
  307. --- 1,10 ----
  308. + /*
  309. +  * $Id: imagen.trm,v 3.26 92/03/24 22:35:33 woo Exp Locker: woo $
  310. +  */
  311.   /* GNUPLOT - imagen.trm */
  312.   /*
  313. !  * Copyright (C) 1990, 1991, 1992   
  314.    *
  315.    * Permission to use, copy, and distribute this software and its
  316.    * documentation for any purpose with or without fee is hereby granted, 
  317. ***************
  318. *** 22,28 ****
  319.    * AUTHORS
  320.    *   Paul E. McKenney, David Kotz
  321.    * 
  322. !  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  323.    * 
  324.    */
  325.   
  326. --- 26,32 ----
  327.    * AUTHORS
  328.    *   Paul E. McKenney, David Kotz
  329.    * 
  330. !  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  331.    * 
  332.    */
  333.   
  334. diff -rc gnuplot/term/impcodes.h gnuplot3.2/term/impcodes.h
  335. *** gnuplot/term/impcodes.h    Mon Mar 26 15:03:20 1990
  336. --- gnuplot3.2/term/impcodes.h    Wed Mar 25 08:00:46 1992
  337. ***************
  338. *** 1,4 ****
  339. --- 1,8 ----
  340.   /*
  341. +  * $Id: impcodes.h,v 3.26 92/03/24 22:35:32 woo Exp Locker: woo $
  342. +  */
  343. + /*
  344.    * Copyright (c) 1985 Regents of the University of California.
  345.    * All rights reserved.  The Berkeley software License Agreement
  346.    * specifies the terms and conditions for redistribution.
  347. diff -rc gnuplot/term/iris4d.trm gnuplot3.2/term/iris4d.trm
  348. *** gnuplot/term/iris4d.trm    Fri Jul 12 10:57:02 1991
  349. --- gnuplot3.2/term/iris4d.trm    Wed Mar 25 08:00:47 1992
  350. ***************
  351. *** 1,6 ****
  352.   /* GNUPLOT - iris4d.trm */
  353.   /*
  354. !  * Copyright (C) 1990   
  355.    *
  356.    * Permission to use, copy, and distribute this software and its
  357.    * documentation for any purpose with or without fee is hereby granted, 
  358. --- 1,10 ----
  359. + /*
  360. +  * $Id: iris4d.trm,v 3.26 92/03/24 22:35:35 woo Exp Locker: woo $
  361. +  */
  362.   /* GNUPLOT - iris4d.trm */
  363.   /*
  364. !  * Copyright (C) 1990, 1991, 1992   
  365.    *
  366.    * Permission to use, copy, and distribute this software and its
  367.    * documentation for any purpose with or without fee is hereby granted, 
  368. ***************
  369. *** 24,30 ****
  370.    *           (Applied Research Corporation) 7/1/89
  371.    *           INTERNET: merritt@iris613.gsfc.nasa.gov
  372.    * 
  373. !  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  374.    * 
  375.    */
  376.   
  377. --- 28,34 ----
  378.    *           (Applied Research Corporation) 7/1/89
  379.    *           INTERNET: merritt@iris613.gsfc.nasa.gov
  380.    * 
  381. !  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  382.    * 
  383.    */
  384.   
  385. diff -rc gnuplot/term/kyo.trm gnuplot3.2/term/kyo.trm
  386. *** gnuplot/term/kyo.trm    Sun Dec  2 22:17:06 1990
  387. --- gnuplot3.2/term/kyo.trm    Wed Mar 25 08:00:48 1992
  388. ***************
  389. *** 1,3 ****
  390. --- 1,7 ----
  391. + /*
  392. +  * $Id: kyo.trm,v 3.26 92/03/24 22:35:36 woo Exp Locker: woo $
  393. +  */
  394.   /* Prescribe (KYOCERA) driver - Michael Waldor */
  395.   /* Modified for gnuplot 2.0 sk@sun4 24-Apr-1990 13:23 */
  396.   #ifdef PRESCRIBE
  397. diff -rc gnuplot/term/latex.trm gnuplot3.2/term/latex.trm
  398. *** gnuplot/term/latex.trm    Sun Jan  5 21:33:34 1992
  399. --- gnuplot3.2/term/latex.trm    Wed Mar 25 08:00:49 1992
  400. ***************
  401. *** 1,6 ****
  402.   /* GNUPLOT - latex.trm */
  403.   /*
  404. !  * Copyright (C) 1990   
  405.    *
  406.    * Permission to use, copy, and distribute this software and its
  407.    * documentation for any purpose with or without fee is hereby granted, 
  408. --- 1,10 ----
  409. + /*
  410. +  * $Id: latex.trm,v 3.26 92/03/24 22:35:37 woo Exp Locker: woo $
  411. +  */
  412.   /* GNUPLOT - latex.trm */
  413.   /*
  414. !  * Copyright (C) 1990, 1991, 1992   
  415.    *
  416.    * Permission to use, copy, and distribute this software and its
  417.    * documentation for any purpose with or without fee is hereby granted, 
  418. ***************
  419. *** 23,29 ****
  420.    * AUTHORS
  421.    *   David Kotz, Russell Lang
  422.    *
  423. !  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  424.    * 
  425.    */
  426.   
  427. --- 27,33 ----
  428.    * AUTHORS
  429.    *   David Kotz, Russell Lang
  430.    *
  431. !  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  432.    * 
  433.    */
  434.   
  435. ***************
  436. *** 404,410 ****
  437.          /* first, figure out increments for x and y */
  438.          if (x2 == x1) {
  439.             xinc = 0.0;
  440. !           yinc = dotspace;
  441.          } else {
  442.             slope = ((float)y2-y1)/((float)x2-x1);
  443.             xinc = dotspace / sqrt(1 + slope*slope) * sign(x2-x1);
  444. --- 408,414 ----
  445.          /* first, figure out increments for x and y */
  446.          if (x2 == x1) {
  447.             xinc = 0.0;
  448. !           yinc = (y2-y1>0)?dotspace:-dotspace;
  449.          } else {
  450.             slope = ((float)y2-y1)/((float)x2-x1);
  451.             xinc = dotspace / sqrt(1 + slope*slope) * sign(x2-x1);
  452. Only in gnuplot3.2/term: next.trm
  453. diff -rc gnuplot/term/object.h gnuplot3.2/term/object.h
  454. *** gnuplot/term/object.h    Mon Mar 26 15:03:24 1990
  455. --- gnuplot3.2/term/object.h    Wed Mar 25 08:00:49 1992
  456. ***************
  457. *** 1,3 ****
  458. --- 1,7 ----
  459. + /*
  460. +  * $Id: object.h,v 3.26 92/03/24 22:35:34 woo Exp Locker: woo $
  461. +  */
  462.   /* 
  463.    *    FIG : Facility for Interactive Generation of figures
  464.    *
  465. Only in gnuplot3.2/term: pbm.trm
  466. diff -rc gnuplot/term/pc.trm gnuplot3.2/term/pc.trm
  467. *** gnuplot/term/pc.trm    Sun Aug  4 13:19:18 1991
  468. --- gnuplot3.2/term/pc.trm    Wed Mar 25 08:00:50 1992
  469. ***************
  470. *** 1,6 ****
  471.   /* GNUPLOT - pc.trm */
  472.   /*
  473. !  * Copyright (C) 1990
  474.    *
  475.    * Permission to use, copy, and distribute this software and its
  476.    * documentation for any purpose with or without fee is hereby granted, 
  477. --- 1,10 ----
  478. + /*
  479. +  * $Id: pc.trm,v 3.26 92/03/24 22:35:39 woo Exp Locker: woo $
  480. +  */
  481.   /* GNUPLOT - pc.trm */
  482.   /*
  483. !  * Copyright (C) 1990, 1991, 1992
  484.    *
  485.    * Permission to use, copy, and distribute this software and its
  486.    * documentation for any purpose with or without fee is hereby granted, 
  487. ***************
  488. *** 25,31 ****
  489.    * AUTHORS
  490.    *  Colin Kelley, Thomas Williams, William Wilson, Russell Lang
  491.    *
  492. !  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  493.    *
  494.    */
  495.   
  496. --- 29,35 ----
  497.    * AUTHORS
  498.    *  Colin Kelley, Thomas Williams, William Wilson, Russell Lang
  499.    *
  500. !  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  501.    *
  502.    */
  503.   
  504. diff -rc gnuplot/term/post.trm gnuplot3.2/term/post.trm
  505. *** gnuplot/term/post.trm    Sun Jan  5 21:33:35 1992
  506. --- gnuplot3.2/term/post.trm    Wed Mar 25 08:00:51 1992
  507. ***************
  508. *** 1,6 ****
  509.   /* GNUPLOT - post.trm */
  510.   /*
  511. !  * Copyright (C) 1990   
  512.    *
  513.    * Permission to use, copy, and distribute this software and its
  514.    * documentation for any purpose with or without fee is hereby granted, 
  515. --- 1,10 ----
  516. + /*
  517. +  * $Id: post.trm,v 3.26 92/03/24 22:35:40 woo Exp Locker: woo $
  518. +  */
  519.   /* GNUPLOT - post.trm */
  520.   /*
  521. !  * Copyright (C) 1990, 1991, 1992   
  522.    *
  523.    * Permission to use, copy, and distribute this software and its
  524.    * documentation for any purpose with or without fee is hereby granted, 
  525. ***************
  526. *** 22,28 ****
  527.    * AUTHORS
  528.    *  Russell Lang
  529.    * 
  530. !  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  531.    *
  532.    * The 'postscript' driver produces landscape output 10" wide and 7" high.  
  533.    * To change font to Times-Roman and font size to 20pts use 
  534. --- 26,32 ----
  535.    * AUTHORS
  536.    *  Russell Lang
  537.    * 
  538. !  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  539.    *
  540.    * The 'postscript' driver produces landscape output 10" wide and 7" high.  
  541.    * To change font to Times-Roman and font size to 20pts use 
  542. diff -rc gnuplot/term/qms.trm gnuplot3.2/term/qms.trm
  543. *** gnuplot/term/qms.trm    Mon Mar 26 15:03:06 1990
  544. --- gnuplot3.2/term/qms.trm    Wed Mar 25 08:00:52 1992
  545. ***************
  546. *** 1,6 ****
  547.   /* GNUPLOT - qms.trm */
  548.   /*
  549. !  * Copyright (C) 1990   
  550.    *
  551.    * Permission to use, copy, and distribute this software and its
  552.    * documentation for any purpose with or without fee is hereby granted, 
  553. --- 1,10 ----
  554. + /*
  555. +  * $Id: qms.trm,v 3.26 92/03/24 22:35:41 woo Exp Locker: woo $
  556. +  */
  557.   /* GNUPLOT - qms.trm */
  558.   /*
  559. !  * Copyright (C) 1990, 1991, 1992   
  560.    *
  561.    * Permission to use, copy, and distribute this software and its
  562.    * documentation for any purpose with or without fee is hereby granted, 
  563. ***************
  564. *** 22,28 ****
  565.    * AUTHORS
  566.    *  Colin Kelley, Thomas Williams, Russell Lang
  567.    * 
  568. !  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  569.    * 
  570.    */
  571.   
  572. --- 26,32 ----
  573.    * AUTHORS
  574.    *  Colin Kelley, Thomas Williams, Russell Lang
  575.    * 
  576. !  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  577.    * 
  578.    */
  579.   
  580. diff -rc gnuplot/term/regis.trm gnuplot3.2/term/regis.trm
  581. *** gnuplot/term/regis.trm    Mon Mar 26 15:03:08 1990
  582. --- gnuplot3.2/term/regis.trm    Wed Mar 25 08:00:53 1992
  583. ***************
  584. *** 1,6 ****
  585.   /* GNUPLOT - regis.trm */
  586.   /*
  587. !  * Copyright (C) 1990   
  588.    *
  589.    * Permission to use, copy, and distribute this software and its
  590.    * documentation for any purpose with or without fee is hereby granted, 
  591. --- 1,10 ----
  592. + /*
  593. +  * $Id: regis.trm,v 3.26 92/03/24 22:35:42 woo Exp Locker: woo $
  594. +  */
  595.   /* GNUPLOT - regis.trm */
  596.   /*
  597. !  * Copyright (C) 1990, 1991, 1992   
  598.    *
  599.    * Permission to use, copy, and distribute this software and its
  600.    * documentation for any purpose with or without fee is hereby granted, 
  601. ***************
  602. *** 22,28 ****
  603.    * AUTHORS
  604.    *  Colin Kelley, Thomas Williams
  605.    * 
  606. !  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  607.    * 
  608.    */
  609.   
  610. --- 26,32 ----
  611.    * AUTHORS
  612.    *  Colin Kelley, Thomas Williams
  613.    * 
  614. !  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  615.    * 
  616.    */
  617.   
  618. diff -rc gnuplot/term/sun.trm gnuplot3.2/term/sun.trm
  619. *** gnuplot/term/sun.trm    Mon Mar 26 15:02:46 1990
  620. --- gnuplot3.2/term/sun.trm    Wed Mar 25 08:00:54 1992
  621. ***************
  622. *** 1,6 ****
  623.   /* GNUPLOT - sun.trm */
  624.   /*
  625. !  * Copyright (C) 1990   
  626.    *
  627.    * Permission to use, copy, and distribute this software and its
  628.    * documentation for any purpose with or without fee is hereby granted, 
  629. --- 1,10 ----
  630. + /*
  631. +  * $Id: sun.trm,v 3.26 92/03/24 22:35:43 woo Exp Locker: woo $
  632. +  */
  633.   /* GNUPLOT - sun.trm */
  634.   /*
  635. !  * Copyright (C) 1990, 1991, 1992   
  636.    *
  637.    * Permission to use, copy, and distribute this software and its
  638.    * documentation for any purpose with or without fee is hereby granted, 
  639. ***************
  640. *** 22,28 ****
  641.    * AUTHORS
  642.    *  Maurice Castro
  643.    * 
  644. !  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  645.    * 
  646.    */
  647.   
  648. --- 26,32 ----
  649.    * AUTHORS
  650.    *  Maurice Castro
  651.    * 
  652. !  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  653.    * 
  654.    */
  655.   
  656. diff -rc gnuplot/term/t410x.trm gnuplot3.2/term/t410x.trm
  657. *** gnuplot/term/t410x.trm    Tue Sep 18 14:59:16 1990
  658. --- gnuplot3.2/term/t410x.trm    Wed Mar 25 08:00:54 1992
  659. ***************
  660. *** 1,6 ****
  661.   /* GNUPLOT - t410x.trm */
  662.   /*
  663. !  * Copyright (C) 1990   
  664.    *
  665.    * Permission to use, copy, and distribute this software and its
  666.    * documentation for any purpose with or without fee is hereby granted, 
  667. --- 1,10 ----
  668. + /*
  669. +  * $Id: t410x.trm,v 3.26 92/03/24 22:35:44 woo Exp Locker: woo $
  670. +  */
  671.   /* GNUPLOT - t410x.trm */
  672.   /*
  673. !  * Copyright (C) 1990, 1991, 1992   
  674.    *
  675.    * Permission to use, copy, and distribute this software and its
  676.    * documentation for any purpose with or without fee is hereby granted, 
  677. ***************
  678. *** 21,27 ****
  679.    * AUTHORS
  680.    *   Colin Kelley, Thomas Williams
  681.    * 
  682. !  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  683.    * 
  684.    */
  685.   
  686. --- 25,31 ----
  687.    * AUTHORS
  688.    *   Colin Kelley, Thomas Williams
  689.    * 
  690. !  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  691.    * 
  692.    */
  693.   
  694. diff -rc gnuplot/term/tek.trm gnuplot3.2/term/tek.trm
  695. *** gnuplot/term/tek.trm    Tue Jun 18 10:00:02 1991
  696. --- gnuplot3.2/term/tek.trm    Wed Mar 25 08:00:55 1992
  697. ***************
  698. *** 1,6 ****
  699.   /* GNUPLOT - tek.trm */
  700.   /*
  701. !  * Copyright (C) 1990   
  702.    *
  703.    * Permission to use, copy, and distribute this software and its
  704.    * documentation for any purpose with or without fee is hereby granted, 
  705. --- 1,10 ----
  706. + /*
  707. +  * $Id: tek.trm,v 3.26 92/03/24 22:35:45 woo Exp Locker: woo $
  708. +  */
  709.   /* GNUPLOT - tek.trm */
  710.   /*
  711. !  * Copyright (C) 1990, 1991, 1992   
  712.    *
  713.    * Permission to use, copy, and distribute this software and its
  714.    * documentation for any purpose with or without fee is hereby granted, 
  715. ***************
  716. *** 23,29 ****
  717.    * AUTHORS
  718.    *   Colin Kelley, Thomas Williams, Russell Lang
  719.    * 
  720. !  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  721.    * 
  722.    */
  723.   
  724. --- 27,33 ----
  725.    * AUTHORS
  726.    *   Colin Kelley, Thomas Williams, Russell Lang
  727.    * 
  728. !  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  729.    * 
  730.    */
  731.   
  732. ***************
  733. *** 356,359 ****
  734.   {
  735.       fprintf(outfile,"\033[?38l");
  736.   }
  737. ! #endif LN03P
  738. --- 360,363 ----
  739.   {
  740.       fprintf(outfile,"\033[?38l");
  741.   }
  742. ! #endif /* LN03P */
  743. diff -rc gnuplot/term/unixpc.trm gnuplot3.2/term/unixpc.trm
  744. *** gnuplot/term/unixpc.trm    Fri Jul 26 09:36:50 1991
  745. --- gnuplot3.2/term/unixpc.trm    Wed Mar 25 08:00:56 1992
  746. ***************
  747. *** 1,6 ****
  748.   /* GNUPLOT - unixpc.trm */
  749.   /*
  750. !  * Copyright (C) 1990   
  751.    *
  752.    * Permission to use, copy, and distribute this software and its
  753.    * documentation for any purpose with or without fee is hereby granted, 
  754. --- 1,10 ----
  755. + /*
  756. +  * $Id: unixpc.trm,v 3.26 92/03/24 22:35:46 woo Exp Locker: woo $
  757. +  */
  758.   /* GNUPLOT - unixpc.trm */
  759.   /*
  760. !  * Copyright (C) 1990, 1991, 1992   
  761.    *
  762.    * Permission to use, copy, and distribute this software and its
  763.    * documentation for any purpose with or without fee is hereby granted, 
  764. ***************
  765. *** 22,28 ****
  766.    * AUTHORS
  767.    *    John Campbell
  768.    * 
  769. !  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  770.    * 
  771.    */
  772.   
  773. --- 26,32 ----
  774.    * AUTHORS
  775.    *    John Campbell
  776.    * 
  777. !  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  778.    * 
  779.    */
  780.   
  781. diff -rc gnuplot/term/unixplot.trm gnuplot3.2/term/unixplot.trm
  782. *** gnuplot/term/unixplot.trm    Mon Mar 26 15:03:16 1990
  783. --- gnuplot3.2/term/unixplot.trm    Wed Mar 25 08:00:57 1992
  784. ***************
  785. *** 1,6 ****
  786.   /* GNUPLOT -- unixplot.trm */
  787.   /*
  788. !  * Copyright (C) 1990   
  789.    *
  790.    * Permission to use, copy, and distribute this software and its
  791.    * documentation for any purpose with or without fee is hereby granted, 
  792. --- 1,10 ----
  793. + /*
  794. +  * $Id: unixplot.trm,v 3.26 92/03/24 22:35:47 woo Exp Locker: woo $
  795. +  */
  796.   /* GNUPLOT -- unixplot.trm */
  797.   /*
  798. !  * Copyright (C) 1990, 1991, 1992   
  799.    *
  800.    * Permission to use, copy, and distribute this software and its
  801.    * documentation for any purpose with or without fee is hereby granted, 
  802. ***************
  803. *** 22,28 ****
  804.    * AUTHORS
  805.    *  Colin Kelley, Thomas Williams, Russell Lang
  806.    * 
  807. !  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  808.    * 
  809.    */
  810.   
  811. --- 26,32 ----
  812.    * AUTHORS
  813.    *  Colin Kelley, Thomas Williams, Russell Lang
  814.    * 
  815. !  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  816.    * 
  817.    */
  818.   
  819. diff -rc gnuplot/term/v384.trm gnuplot3.2/term/v384.trm
  820. *** gnuplot/term/v384.trm    Mon Mar 26 15:03:18 1990
  821. --- gnuplot3.2/term/v384.trm    Wed Mar 25 08:00:58 1992
  822. ***************
  823. *** 1,6 ****
  824.   /* GNUPLOT - v384.trm */
  825.   /*
  826. !  * Copyright (C) 1990   
  827.    *
  828.    * Permission to use, copy, and distribute this software and its
  829.    * documentation for any purpose with or without fee is hereby granted, 
  830. --- 1,10 ----
  831. + /*
  832. +  * $Id: v384.trm,v 3.26 92/03/24 22:35:48 woo Exp Locker: woo $
  833. +  */
  834.   /* GNUPLOT - v384.trm */
  835.   /*
  836. !  * Copyright (C) 1990, 1991, 1992   
  837.    *
  838.    * Permission to use, copy, and distribute this software and its
  839.    * documentation for any purpose with or without fee is hereby granted, 
  840. ***************
  841. *** 22,28 ****
  842.    * AUTHORS
  843.    *   roland@moncskermit.OZ (Roland Yap) 
  844.    * 
  845. !  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  846.    * 
  847.    */
  848.   
  849. --- 26,32 ----
  850.    * AUTHORS
  851.    *   roland@moncskermit.OZ (Roland Yap) 
  852.    * 
  853. !  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  854.    * 
  855.    */
  856.   
  857. diff -rc gnuplot/term/vws.trm gnuplot3.2/term/vws.trm
  858. *** gnuplot/term/vws.trm    Sun Sep  8 09:49:56 1991
  859. --- gnuplot3.2/term/vws.trm    Wed Mar 25 08:00:59 1992
  860. ***************
  861. *** 1,6 ****
  862.   /* GNUPLOT - vws.trm */
  863.   /*
  864. !  * Copyright (C) 1990
  865.    *
  866.    * Permission to use, copy, and distribute this software and its
  867.    * documentation for any purpose with or without fee is hereby granted,
  868. --- 1,10 ----
  869. + /*
  870. +  * $Id: vws.trm,v 3.26 92/03/24 22:35:51 woo Exp Locker: woo $
  871. +  */
  872.   /* GNUPLOT - vws.trm */
  873.   /*
  874. !  * Copyright (C) 1990, 1991, 1992
  875.    *
  876.    * Permission to use, copy, and distribute this software and its
  877.    * documentation for any purpose with or without fee is hereby granted,
  878. ***************
  879. *** 23,29 ****
  880.    *   Walter Speth
  881.    *           BITNET: SPETH@DBNPIB5
  882.    *
  883. !  * send your comments or suggestions to (pixar!info-gnuplot@sun.com).
  884.    *
  885.    */
  886.    
  887. --- 27,33 ----
  888.    *   Walter Speth
  889.    *           BITNET: SPETH@DBNPIB5
  890.    *
  891. !  * send your comments or suggestions to (info-gnuplot@ames.arc.nasa.gov).
  892.    *
  893.    */
  894.    
  895. diff -rc gnuplot/term/x11.trm gnuplot3.2/term/x11.trm
  896. *** gnuplot/term/x11.trm    Thu Jul 25 09:12:23 1991
  897. --- gnuplot3.2/term/x11.trm    Wed Mar 25 08:00:59 1992
  898. ***************
  899. *** 1,4 ****
  900. --- 1,8 ----
  901.   /*
  902. +  * $Id: x11.trm,v 3.26 92/03/24 22:35:49 woo Exp Locker: woo $
  903. +  */
  904. + /*
  905.    *    x11.trm  --- inboard terminal driver for X11
  906.    */
  907.   
  908. ***************
  909. *** 11,18 ****
  910.   #define X11_VTIC (X11_YMAX/100)
  911.   #define X11_HTIC (X11_XMAX/150)
  912.   
  913. ! #define X11_nopts 22
  914.   char X11_opts[X11_nopts][20] = {
  915.      "-iconic", "-rv", "-reverse", "+rv", "-synchronous", 
  916.      "-display", "-geometry", "-bg", "-background", "-bd", "-bordercolor", "-bw",
  917.      "-borderwidth", "-fg", "-foreground", "-fn", "-font", "-name", 
  918. --- 15,23 ----
  919.   #define X11_VTIC (X11_YMAX/100)
  920.   #define X11_HTIC (X11_XMAX/150)
  921.   
  922. ! #define X11_nopts 25
  923.   char X11_opts[X11_nopts][20] = {
  924. +    "-mono", "-gray", "-clear",
  925.      "-iconic", "-rv", "-reverse", "+rv", "-synchronous", 
  926.      "-display", "-geometry", "-bg", "-background", "-bd", "-bordercolor", "-bw",
  927.      "-borderwidth", "-fg", "-foreground", "-fn", "-font", "-name", 
  928. ***************
  929. *** 19,24 ****
  930. --- 24,30 ----
  931.      "-selectionTimeout", "-title", "-xnllanguage", "-xrm" 
  932.      };
  933.   int X11_optarg[X11_nopts] = { 
  934. +    0, 0, 0,
  935.      0, 0, 0, 0, 0,
  936.      1, 1, 1, 1, 1, 1, 1,
  937.      1, 1, 1, 1, 1, 1, 
  938. ***************
  939. *** 25,34 ****
  940.      1, 1, 1, 1
  941.      };
  942.   
  943. ! FILE *X11_pipe, *popen();
  944. ! char X11_command[1024]= "gnuplot_x11 -name gnuplot";
  945.   
  946.   /*   X11_args - scan gnuplot command line for standard X Toolkit options */
  947.   
  948.   X11_args(argc, argv) int argc; char *argv[]; {
  949. --- 31,39 ----
  950.      1, 1, 1, 1
  951.      };
  952.   
  953. ! FILE *X11_ipc; 
  954. ! char X11_command[1024]= "gnuplot_x11";
  955.   
  956.   /*   X11_args - scan gnuplot command line for standard X Toolkit options */
  957.   
  958.   X11_args(argc, argv) int argc; char *argv[]; {
  959. ***************
  960. *** 54,83 ****
  961.      return(nx11);
  962.      }
  963.   
  964.   #ifdef ULTRIX_KLUDGE
  965. ! #define X11_ULTRIX_KLUDGE fprintf (X11_pipe, "E\n"); fflush (X11_pipe);
  966. ! #else
  967. ! #define X11_ULTRIX_KLUDGE 
  968.   #endif
  969.   
  970. ! X11_init() { X11_pipe = popen(X11_command, "w"); }
  971.   
  972. ! X11_reset() { fprintf(X11_pipe, "R\n"); fflush(X11_pipe); pclose(X11_pipe); }
  973.   
  974. ! X11_text() { fprintf(X11_pipe, "E\n"); fflush(X11_pipe); X11_ULTRIX_KLUDGE }
  975.   
  976. ! X11_graphics() { fprintf(X11_pipe, "G\n"); }
  977.   
  978. ! X11_move(x,y) unsigned int x,y; { fprintf(X11_pipe, "M%04d%04d\n", x, y); }
  979.   
  980. ! X11_vector(x,y) unsigned int x,y; { fprintf(X11_pipe, "V%04d%04d\n", x, y); }
  981.   
  982. ! X11_linetype(lt) int lt; { fprintf(X11_pipe, "L%04d\n", lt); }
  983.   
  984.   X11_put_text(x,y,str) unsigned int x,y; char str[]; {
  985. !    fprintf(X11_pipe, "T%04d%04d%s\n", x, y, str);
  986.      }
  987.   X11_justify_text(mode) enum JUSTIFY mode; {
  988. !    fprintf(X11_pipe, "J%04d\n", mode);
  989.      return(TRUE);
  990.      }
  991. --- 59,130 ----
  992.      return(nx11);
  993.      }
  994.   
  995. + #ifndef CRIPPLED_SELECT
  996. + /*-----------------------------------------------------------------------------
  997. +  *   use pipe IPC on most platforms
  998. +  *---------------------------------------------------------------------------*/
  999. + FILE *popen();
  1000. + X11_init() { X11_ipc = popen(X11_command, "w"); }
  1001. + X11_graphics() { fprintf(X11_ipc, "G\n"); }
  1002. + X11_text() { 
  1003. +    fprintf(X11_ipc, "E\n"); fflush(X11_ipc);
  1004.   #ifdef ULTRIX_KLUDGE
  1005. !    fprintf(X11_ipc, "E\n"); fflush(X11_ipc);
  1006.   #endif
  1007. +    }
  1008.   
  1009. ! X11_reset() { fprintf(X11_ipc, "R\n"); fflush(X11_ipc); pclose(X11_ipc); }
  1010.   
  1011. ! #else   /* CRIPPLED_SELECT */
  1012. ! /*-----------------------------------------------------------------------------
  1013. !  *   use file IPC on the others
  1014. !  *---------------------------------------------------------------------------*/
  1015.   
  1016. ! char X11_tmp[32], X11_tmp0[32], X11_shutdown[32];
  1017. ! int X11_pid;
  1018.   
  1019. ! X11_init() { 
  1020. !    if (!(X11_pid = fork())) {
  1021. !       execl("/bin/sh", "sh", "-c", X11_command, NULL);
  1022. !       _exit(1);
  1023. !       }
  1024. !    sprintf(X11_tmp, "/tmp/Gnuplot_%d", X11_pid);
  1025. !    sprintf(X11_tmp0, "%s-", X11_tmp);
  1026. !    sprintf(X11_shutdown,  "echo R >%s",X11_tmp);
  1027. !    }
  1028.   
  1029. ! X11_graphics() { 
  1030. !    X11_ipc = fopen(X11_tmp0, "w"); 
  1031. !    if (!X11_ipc) { perror(X11_tmp0); system(X11_shutdown); exit(1); }
  1032. !    fprintf(X11_ipc, "G\n"); 
  1033. !    }
  1034.   
  1035. ! X11_text() { 
  1036. !    fprintf(X11_ipc, "E\n"); 
  1037. ! #ifdef ULTRIX_KLUDGE
  1038. !    fprintf(X11_ipc, "E\n");
  1039. ! #endif
  1040. !    fclose(X11_ipc);
  1041. !    rename(X11_tmp0, X11_tmp);
  1042. !    }
  1043.   
  1044. ! X11_reset() { system(X11_shutdown); }
  1045.   
  1046. + #endif  /* CRIPPLED_SELECT */ /*---------------------------------------------*/
  1047. + X11_move(x,y) unsigned int x,y; { fprintf(X11_ipc, "M%04d%04d\n", x, y); }
  1048. + X11_vector(x,y) unsigned int x,y; { fprintf(X11_ipc, "V%04d%04d\n", x, y); }
  1049. + X11_linetype(lt) int lt; { fprintf(X11_ipc, "L%04d\n", lt); }
  1050.   X11_put_text(x,y,str) unsigned int x,y; char str[]; {
  1051. !    fprintf(X11_ipc, "T%04d%04d%s\n", x, y, str);
  1052.      }
  1053.   X11_justify_text(mode) enum JUSTIFY mode; {
  1054. !    fprintf(X11_ipc, "J%04d\n", mode);
  1055.      return(TRUE);
  1056.      }
  1057.