home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / progm / qlib.zip / PRDEF.DOC < prev    next >
Text File  |  1991-01-09  |  1KB  |  43 lines

  1.  
  2.  
  3.  
  4. The format for a printer definition file read by PRTDEF must be 16 lines of
  5. valid printer control codes in numeric notation, and four lines of form data
  6. in real numbers.  For control codes the code ESC A would be entered as 27 65
  7. and ESC 1 as 27 49.  Be careful not to confuse the number 1 which is ASCII 49
  8. with ASCII 1 which is CTL A and would be entered as 01.  02 would be ASCII two,
  9. 03 ASCII 3 and so forth.
  10.  
  11. The 20 lines must be in this order, and if any item is blank then a blank line
  12. must be left for it.
  13.  
  14. Initialization code
  15. Condensed print
  16. Data 12 pitch
  17. Letter 12 pitch
  18. Data 10 pitch
  19. Letter 10 pitch
  20. Double height
  21. Double height off
  22. Elongate
  23. Elongate off
  24. Bold
  25. Bold off
  26. Underline
  27. Underline off
  28. Italics
  29. Italics off
  30. Top margin in lines, for example 4 means 4 lines
  31. Bottom margin in lines
  32. Left margin toggle, the sequence sent to signal that a left margin value follows
  33. Page length in lines
  34.  
  35. Any line after line 20 can be used for notes as the program only reads in 20
  36. codes, then exits.
  37.  
  38. The routine DEFPRT is designed to provide an input routine for correctly
  39. filling out a printer definition file, and may be incorporated into your
  40. programs to give end users a means of easily creating or altering printer
  41. code files.
  42.  
  43.