home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / lambda / soundpot / p / pi12.lbr / PI.DZC / PI.DOC
Encoding:
Text File  |  1993-10-25  |  3.4 KB  |  112 lines

  1.  
  2.  
  3.         Printer Initialise program (PI.COM).
  4.         ====================================
  5.  
  6.  
  7. This program will initialise a modern printer through the  logical  LST:
  8. device.  The  initialisation string may follow the command PI and may be
  9. in a variety of formats although each  of  the  initialisation  commands
  10. should be separated by a space.
  11.  
  12. Hexadecimal numbers.
  13. ====================
  14.  
  15. Hexadecimal numbers should be two digits only  and  preceded  by  the  #
  16. symbol.  They will be converted to a single hexadecimal byte and sent to
  17. the LST: device.
  18.  
  19.         Example A>PI #1B #20
  20.  
  21. A leading zero may be omitted, for example #0D may be entered as #D.
  22.  
  23.  
  24. Decimal numbers.
  25. ================
  26.  
  27. Decimal numbers may be any number in the range 0 to 255.  They  will  be
  28. converted to a single hexadecimal byte and sent to the LST: device.
  29.  
  30.         Example A>PI 27 32
  31.  
  32.  
  33. Control characters.
  34. ===================
  35.  
  36. These may either be typed as a single character, in which case the  BDOS
  37. will  display an up arrow before the character, or may be typed as an up
  38. arrow followed by another character. In the  second  case  the  ordinary
  39. character will have the `control' operation performed on it before it is
  40. sent to the LST: device. The latter variation is useful  for  sending  a
  41. control X or a control R.
  42.  
  43. In addition the exclamation mark (!) may be used to represent  the  code
  44. 1BH (ESC) and the period (.) may be used to represent 00 (NUL).
  45.  
  46.  
  47. Epson Printer control codes.
  48. ============================
  49.  
  50. Owners Epson printers may use the following words in the  initialisation
  51. string to achieve the same effect as the description in the manual.
  52.  
  53. WORD    CODE        WORD    CODE        WORD    CODE
  54.  
  55. NUL    00        BEL    07H        HT    09H
  56. LF    0AH        VT    0BH        FF    0CH
  57. CR    0DH        SO    0EH        SI    0FH
  58. DC1    11H        DC2    12H        DC3    13H
  59. DC4    14H        CAN    18H        ESC    1BH
  60. DEL    7FH
  61.  
  62.         Example A>PI FF ESCE ESCG CR LF
  63.  
  64. Strings.
  65. ========
  66.  
  67. Any characters which appear within double quote marks will be output  to
  68. the LST: device exactly as typed.
  69.  
  70.         Example A>PI ESCE ESCG "STRING" CR LF
  71.  
  72.  
  73. Initialisation from file.
  74. =========================
  75.  
  76. If the first character on the input line is a "less-than" sign (<),  the
  77. rest  of  the line is assumed to be the name of a file. The first record
  78. only (128 bytes) of the file is read in and used as  the  initialisation
  79. string.
  80.  
  81.         Example A>PI < B:PRINT1.TXT
  82.  
  83. The contents of the file should follow the rules laid out above for  the
  84. various formats.
  85.  
  86. Lower case
  87. ==========
  88.  
  89. Lower case characters may not be sent directly  from  the  CP/M  command
  90. line as the CCP converts all alphabetic characters to upper case. Should
  91. the user wish to send lower case letters as part of a control  sequence,
  92. he  should  either  include  the  initialisation  string  in  a  file as
  93. described above or use PI's own command mode which is accessed by simply
  94. typing PI on its own.
  95.  
  96.         Example A>PI
  97.  
  98. In the above example, PI will print an asterisk (*)  prompt.  A  command
  99. line  containing  upper  and lower case letters may be entered here or a
  100. return to CP/M may be executed by pressing return.
  101.  
  102. To obtain a short help screen, type a slash  (/)  as  the  first  active
  103. character  after  the  program name. Any other characters on the command
  104. line will be ignored.
  105.  
  106.         Example A>PI /
  107.  
  108.  
  109.  
  110.  
  111. acter  after  the  program name. Any other characters on the command
  112. line will be