From: Jaap Akkerhuis Date: Sat, 5 Mar 1988 09:22:30 +0000 (-0800) Subject: date and time created 88/03/04 17:22:30 by jaap X-Git-Tag: BSD-4_3_Net_1-Snapshot-Development~2391 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/17b547ee578d90a5c032ed7e943117a5ad343ede date and time created 88/03/04 17:22:30 by jaap SCCS-vsn: local/ditroff/ditroff.okeeffe/psfig/patches/ditroff.frag 1.1 --- diff --git a/usr/src/local/ditroff/ditroff.okeeffe/psfig/patches/ditroff.frag b/usr/src/local/ditroff/ditroff.okeeffe/psfig/patches/ditroff.frag new file mode 100644 index 0000000000..82f42b278c --- /dev/null +++ b/usr/src/local/ditroff/ditroff.okeeffe/psfig/patches/ditroff.frag @@ -0,0 +1,41 @@ +ptout0(pi) +tchar *pi; +{ + register short j, k, w; + short z, dx, dy, dx2, dy2, n; + register tchar i; + int outsize; /* size of object being printed */ + + outsize = 1; /* default */ + i = *pi; + k = cbits(i); + if (ismot(i)) { + j = absmot(i); + if (isnmot(i)) + j = -j; + if (isvmot(i)) + lead += j; + else + esc += j; + return(outsize); + } + if (k == XON) { + int c; + if (xfont != mfont) + ptfont(); + if (xpts != mpts) + ptps(); + if (lead) + ptlead(); +/* ADD these two lines vvv */ + if (esc) + ptesc(); +/* ^^^ */ + fdprintf(ptid, "x X "); + for (j = 1; (c=cbits(pi[j])) != XOFF; j++) + outascii(pi[j]); + oput('\n'); + return j+1; + } + ; +