29-SEP-89 -GJC (GJC@PARADIGM.COM or GJC@MITECH.COM)
20-FEB-90 -GJC, updated to support XTEK_MAIL_BOX input filename hack.

A Tektronix file to Postscript or X-Window plot converter.
Currently VMS specific in implementation because it depends on

 XSelectAsyncInput(Wdpy,w,ExposureMask|StructureNotifyMask,
		   event_ast_handler,0);

for event handling. If you need to run it under Unix you can
add an event handling loop in the function xtek_showpage() from
the file "XTEKX.C".


The XTEK.C program is a modified version of a program from the
comp.sources.unix archive.

 @(#)t2p.c 1.10 tek2ps (Copyright) M. Fischbein
 Commercial reproduction prohibited; non-profit reproduction and 
 distribution encouraged.

XTEK.PRO and XTEK.H are unmodified from TEK2PS.

GETOPT.C was probably gotten from comp.sources.unix also, and modified for VMS.

XTEKX.C and PLOTX_LIB.C are new files that do very basic plotting
using XLIB.

Define a logical name TEK2PS_PRO to point to XTEK.PRO if you are using
the post-script feature.

To produce X-WINDOW plots use an output filename of "x".

  $ XTEK -o x <tek-filename> 

To have a mail box created, which can be used as a substitute for
a TEK TERMINAL emulator.

 $ SPAWN/NOWAIT/IN=NL: XTEK -o x -e XTEK_MAIL_BOX_1

Then use the device XTEK_MAIL_BOX instead of TT to give plot routines.

To build under VMS use BUILD.COM

The file CLR.C gives a command to clear the window.
The file CAT.C gives a command to copy a tektronics file to the mailbox
device without getting into record-size problems.

George Carrette,
Paradigm Associates Inc
gjc@paradigm.com

