home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / PSD.ZIP / README.DOC < prev   
Text File  |  1988-05-23  |  3KB  |  62 lines

  1. PSD.EXE --
  2.  
  3. PSD is a simple utility that wraps a PostScript envelope around
  4. an ASCII file so that it can be printed on a PostScript printer,
  5. such as the Apple LaserWriter.  It is not intended to provide
  6. elegant formatting.  Rather, it serves as a simple method to
  7. print ASCII files, such as program listings.
  8.  
  9. The .EXE file included here is a bound application.  It will run
  10. in either DOS 3.x or OS/2.  The .CMD file contains the compile,
  11. link, and bind commands for my system.  Of course, the source
  12. can be compiled and linked under either DOS or OS/2, if you prefer.
  13.  
  14. A predecessor program, LWP, included async I/O support and
  15. XON/XOFF flow control, required by early LaserWriters.  (The
  16. PRINT spooler in DOS cannot handle XON/XOFF control.)  Under
  17. OS/2 the MODE command can invoke the XON/XOFF flow control (most
  18. new LaserWriters don't need this, they use DTR flow control) and
  19. output directed to a parallel printer port (LPTn) can be
  20. redirected to a COM port through SPOOL.
  21.  
  22. I use this program when I need to print a group of files, either
  23. in the DOS box or in OS/2.  By starting PSD in OS/2 mode and
  24. then switching screen groups the formatting and printing proceed
  25. without intervention, while I go on with my work.  In my system
  26. I have SPOOL set up on LPT2, redirected to COM1.  The PSD
  27. program looks for an environment variable, PSD=, to tell it
  28. where to send its output.  Although the variable can define a
  29. filename (it's simply inserted in an fopen() statement), I have
  30. it defined as PSD=LPT2.  Thus, the output, in either OS/2 or DOS
  31. mode, is handed to the SPOOL.
  32.  
  33. The usage for PSD is reasonably straightforward for simple
  34. printing: the program name is followed by a list of files to
  35. print.  The filename(s) may include wildcards.  Options are
  36. provided for limited format control.  To get a list of the
  37. options, run PSD without a filename parameter.
  38.  
  39. One little glitch: PSD inserts an EOD at the end of the print 
  40. data stream.  The OS/2 SPOOL does not seem to pass this along to
  41. the printer.  Thus, the LaserWriter keeps looking for additional
  42. input (the yellow "busy" light flashes) until it times out.  If
  43. the LaserWriter gets confused, then it may discard all incoming
  44. data looking for an EOD signal.  The result will be that the
  45. print data will be lost.  Presuming that you haven't erased it
  46. yet (!!!), you can reprint it.  Also, because SPOOL was designed
  47. to support devices that don't talk back, such as parallel
  48. printers, error messages from the LaserWriter are ignored.  You
  49. won't know when it's out of paper unless you look at it.
  50.  
  51. Compiled in MSC 5.1.  Tested under IBM OS/2 1.0.
  52.  
  53. I hope that you find this little utility as useful as I do.  If
  54. you encounter any difficulties, please let me know.
  55.  
  56. May 23, 1988
  57.  
  58. Roger Loeb, MarTech, 3457 Iris Court, Boulder, CO 80302 (303) 447-0832
  59.  
  60. Compuserv: 74666,355
  61. BIX: rogloeb
  62.