Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!fernwood!decwrl!hplabs!hpfcso!hpldola!hpctdlb!hpctdls!wei
From: wei@hpctdls.HP.COM (Bill Ives)
Newsgroups: comp.lang.pascal
Subject: Re: printing pascal runs..
Message-ID: <390005@hpctdls.HP.COM>
Date: 27 Sep 89 16:12:46 GMT
References: <4930@uhccux.uhcc.hawaii.edu>
Organization: Hewlett-Packard CTD, Colo. Spgs.
Lines: 22



     As I recall for TP 3, there is a compilier directive to
     force all Write/Writeln to go to standard devices (i.e.
     stdout, stdin, stderr, stdaux, stdprn, etc...). You should
     therefore try the PUT directive:
       {$P50}
     The 50 specifies an output buffer of 50 bytes ( make it what ever
     value you want )  Then you can redirect stdout to the printer
     from the command line when invoking your COM file like:
      program >LPT1
     This will redirect all write('') calls to the printer attached
     to LPT1.  Another way to do what you want is to actually modify the
     source code of the write statements to go to LST ( the list device ).
     Thus all write('Hello'); become write(LST,'Hello'); .
     I'm not real certain about either technic as its been a long time since
     I had to use TP 3.  Hope these suggestions work out....


     Bill Ives
     HP CTD
     #include