home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff282.lzh / PrintHandler / ReadMe < prev    next >
Text File  |  1989-11-21  |  2KB  |  52 lines

  1. Print-Handler.c v1.1, 30 September 1989
  2.  
  3. This  printer  device handler implements the single sheet support
  4. and data-spooling facility the usual PRT:  device does not have.
  5.  
  6. Each time a page has been successfully transferred to the printer
  7. and  single paper sheets are selected in Preferences, a requestor
  8. pops  up  on  the Workbench screen telling the user to insert the
  9. next  sheet  of  paper.   If a process addresses this handler via
  10. Open()  and  Write()s  data  to it, the incoming text is buffered
  11. until the data stream is Close()d.  After that the buffer sent to
  12. the  printer  device and finally gets discarded.  Note that there
  13. will  be  a buffer for each calling process (up to twenty callers
  14. are  allowed),  so  you may get low on memory.  This handler will
  15. notice low memory situations and return a write error in critical
  16. situations.   This handler does no first-in-first-out or last-in-
  17. first-out data stack handling, the first data to come out is from
  18. the first buffer to be closed
  19.  
  20. Don't  be  confused if the requestor pops up while the printer is
  21. still  working.  Since most printers have a write buffer of their
  22. own true synchronous printer I/O is almost impossible.
  23.  
  24. Installation is as follows:
  25.  
  26.     Add the following lines to your DEVS:Mountlist
  27.  
  28.        PRT:    Handler        = L:Print-Handler
  29.            Stacksize    = 3000
  30.            Priority    = 5
  31.            GlobVec        = 1
  32.        #
  33.  
  34.     Add the following lines to your S:Startup-Sequence
  35.  
  36.        Assign PRT: Remove
  37.        Mount PRT:
  38.  
  39.     Copy Print-Handler to your L:
  40.  
  41. Skeleton handler code by Phillip Lindsay (C) 1986 Commodore
  42. You may freely distribute this source and use it for Amiga Development,
  43. as long as the Copyright notice is left intact.
  44.  
  45. Print-Handler (C) Copyright 1989 by Olaf Barthel & ED Hannover
  46.  
  47. Contact:    Olaf Barthel, Electronic Design Hannover
  48.          Brabeckstrasse 35
  49.          D-3000 Hannover 71
  50.          Federal Republic of Germany
  51.  
  52.