|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T h
Length: 2113 (0x841) Types: TextFile Names: »hp2648.trm«
└─⟦52210d11f⟧ Bits:30007239 EUUGD2: TeX 3 1992-12 └─⟦63303ae94⟧ »unix3.14/TeX3.14.tar.Z« └─⟦c58930e5c⟧ └─⟦this⟧ »TeX3.14/TeXcontrib/gnuplot/term/hp2648.trm«
/* 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, * provided that the above copyright notice appear in all copies and * that both that copyright notice and this permission notice appear * in supporting documentation. * * Permission to modify the software is granted, but not the right to * distribute the modified code. Modifications are to be distributed * as patches to released version. * * This software is provided "as is" without express or implied warranty. * * This file is included by ../term.c. * * This terminal driver supports: * HP2648 and HP2647 * * AUTHORS * Russell Lang * * send your comments or suggestions to (pixar!info-gnuplot@sun.com). * */ #define HP2648XMAX 720 #define HP2648YMAX 360 #define HP2648XLAST (HP2648XMAX - 1) #define HP2648YLAST (HP2648YMAX - 1) #define HP2648VCHAR 12 #define HP2648HCHAR 7 #define HP2648VTIC 8 #define HP2648HTIC 8 HP2648init() { fprintf(outfile,"\033*m1m1n136,1cZ"); /* 1 2 3 4 1. mode 2. textsize=1 3. textangle=1 4. define line type 2 to be * * * * etc. */ } HP2648graphics() { fprintf(outfile,"\033*dacZ"); /* 1 23 1. mode 2. clear grahics screen 3. graphics video on */ } HP2648text() { } HP2648linetype(linetype) int linetype; { static int hpline[] = {1,7,1,4,5,6,8,9,10,7,2}; fprintf(outfile,"\033*m%dbZ",hpline[(linetype+2)%11]); } HP2648move(x,y) int x,y; { fprintf(outfile,"\033*paf%d,%dZ",x,y); /* 1 23 4 1 plot mode 2 "pen up" 3 goto absolute x,y 4 end command */ } HP2648vector(x,y) int x,y; { fprintf(outfile,"\033*pbf%d,%dZ",x,y); /* 1 1 "pen down" */ } HP2648put_text(x,y,str) int x, y; char *str; { HP2648move(x,y-HP2648VCHAR/2 + 1); fprintf(outfile,"\033*l%s\n",str); } int HP2648_text_angle(ang) int ang; { fprintf(outfile,"\033*m%dnZ\n",ang+1); return TRUE; } HP2648reset() { }