home *** CD-ROM | disk | FTP | other *** search
/ Shareware 1 2 the Maxx / sw_1.zip / sw_1 / DESQVIEW / DVSI2_00.ZIP / PRINTCAP < prev    next >
Text File  |  1992-02-16  |  2KB  |  56 lines

  1. # This is a sample PRINTCAP file.  Edit it as you please.
  2. # Comments must have the ``#'' character in the first column
  3. #
  4. # You should comment out printers that are not used to save system memory
  5. # in the LPD window
  6. #
  7. # Here's the most basic print entry: LPD passes the file through
  8. # unchanged.  The lp token specifies the physical printer, and the
  9. # sf token suppresses LPD-inserted form feeds at the end of each page
  10. # (form feeds already in the document will still be printed)
  11. lp: \
  12.     :lp=LPT1: \
  13.     :sf:
  14.  
  15. # Now let's get fancy.  Format pages to 60 lines/page.  We must not use
  16. # sf here, or pl would be ignored.  If we do not use sf and do not specify
  17. # a pl page length, pl will default to 66 lines/page.
  18. somewhat_fancy:
  19.     :lp=LPT1: \
  20.     :pl#60:
  21.  
  22. # Still kind of boring.  How about initializing an Epson printer
  23. # before the job with the initializer string ESCAPE-@, and form-feeding
  24. # at the end of the job.  The hr specifies a string to send to the printer
  25. # before each file is printed.  Here we use \E which is an escape (ASCII 27)
  26. # followed by the ``@''.  This character sequence resets an Epson printer.
  27. # The tr string uses \f, a formfeed character, so a form feed is printed
  28. # after each file.
  29. little_fancier:  \
  30.     :lp=LPT1: \
  31.     :pl#60: \
  32.     :hr=\E@: \
  33.     :tr=\f:
  34.  
  35. # Now things are looking better.  But how about that printer on
  36. # our serial port?  We will use br to set the baud rate at 9600, and se
  37. # to set the parameters at 8 bit, No parity, 1 stop bit, No handshaking
  38. serial:\
  39.     :lp=COM1:\
  40.     :sf:\
  41.     :br#9600:\
  42.     :se=8N1N:
  43.  
  44. # Now let's say we want to print to our network printer.  But that
  45. # requires us to run a program defined in the DVP named C:\PR\NET.DVP
  46. #  Notice that if we use a drive name in the ``fi'' argument, a semicolon
  47. #  must be used rather than a colon
  48. net: \
  49.     :lp=DVP: \
  50.     :fi=C;\PR\NET.DVP:
  51.  
  52. # and finally, let's print to the device driver EPS
  53. eps_ptr:\
  54.     :lp=FILE:\
  55.     :fi=EPS:
  56.