Kbase P17425: What are the print escape sequences for the PRINTONIX P5000 series?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/15/2008 |
|
Status: Unverified
GOAL:
What are the printer control codes for the Printronix P5000 series running in Epson FX-1050 Emulation or IBM Proprinter III XL Emulation mode?
FIX:
Printer control commands or escape sequences are strings of more than one character where the first character is always the ASCII ESCape character.
The ESC character at the beginning of the sequence alerts the printer that a special function printer command, and not a printable character string, follows.
The Progress PUT statement can send these printer command sequences in ASCII, Octal or Decimal format.
For example the Emphasized Print Command may be expressed as "~E" + "E" in ASCII or as "~033" + "~105" in Octal or as CHR(27) + CHR(69) in Decimal.
The following code demonstrates how to select and unselect the emphasized print mode (BOLD) using the EPSON escape sequence:
DEFINE VARIABLE EmphasizedPrint AS CHARACTER NO-UNDO.
DEFINE VARIABLE EmphasizedPrintCancel AS CHARACTER NO-UNDO.
ASSIGN
EmphasizedPrint = CHR(27) + CHR(69)
EmphasizedPrintCancel = CHR(27) + CHR(70).
OUTPUT TO PRINTER.
PUT EmphasizedPrint.
DISPLAY "This text is in Emphasized Print Mode".
PUT EmphasizedPrintCancel.
DISPLAY "This text is in Emphasized Print Cancel Mode".
OUTPUT CLOSE.
For a complete listing of the Epson FX-1050 Emulation or IBM Proprinter III XL Emulation mode escape sequences supported by the Printronix P5000 series consult your "P5000 LinePrinter Plus Programmer?s Reference Manual? or download it from the manufacturer's link:
http://www.printronix.com/public/servicessupport/refman.aspx?id=490