CONTENTS Title Page Copyright Page Preface 1 General Information 1.1 X24E Emulation 1.2 Line Buffers and Terminators 1.3 Graphics Mode 1.4 Initial States 1.5 Horizontal Form Handling 1.5.1 Horizontal Tabs 1.5.2 Horizontal Pitch 1.5.3 Double Width 1.6 Vertical Form Handling 1.6.1 Vertical Pitch 1.6.2 Bottom Margin 1.6.3 Vertical Tabs 1.7 Protocol Switching 1.8 Conditional Form Feed 1.9 Printing Modes and Attributes 1.9.1 Superscript and Subscript 1.9.2 Exceptions and Clarifications 1.9.3 Directional Printing Control 1.9.4 Color Printing 1.10 Printer Paper-Out 2 X24E Emulation Parsing Rules 2.1 Control Codes 2.2 Escape Sequences 2.2.1 Processing Consecutive Escape Codes 2.2.2 Fixed-Size Sequences 2.2.3 Termination of Variable-Length Sequences 2.2.4 Counted Variable-Length Sequences 2.2.5 Parameter Encoding 2.2.6 Processing Undefined Sequences 3 Control Characters 3.1 General Information 3.2 Summary of Control Characters 3.2.1 Null (NUL) 3.2.2 Bell (BEL) 3.2.3 Backspace (BS) 3.2.4 Horizontal Tab (HT) 3.2.5 Line Feed (LF) 3.2.6 Vertical Tab (VT) 3.2.7 Form Feed (FF) 3.2.8 Carriage Return (CR) 3.2.9 Shift Out (SO) - Double-Width Printing by Line 3.2.10 Shift In (SI) - Condensed Printing 3.2.11 Device Control 1 (DC1) 3.2.12 Device Control 2 (DC2) 3.2.13 Device Control 3 (DC3) 3.2.14 Device Control 4 (DC4) 3.2.15 Cancel (CAN) 3.2.16 Escape (ESC) 3.3 Special Characters 3.3.1 Space (SP) 3.3.2 FFH 15/15 3.3.3 Ignored Codes 4 Escape Sequences 4.1 The General Form of a Sequence Description 4.2 Coding DECIPEM, RIS, and DECSTR 4.3 Terminal Management Automatic Sheet Feeder Control (ERASFC) Code Page Switching (ERSCS) Deselect Printer (ERDPR) IBM Proprinter Emulation Mode Terminal Reset (ERRIS) Enter IBM Proprinter Emulation Mode (DECIPEM) Reset to Initial State (RIS) Return from IBM Proprinter Emulation Mode (DECIPEM) Return from Other Coding System (ROCS) Select Other Coding System (SOCS) Set Initial Condition (ERSIC) Set Printer Offline (ERPROFF) Soft Terminal Reset (DECSTR) 4.4 Horizontal Form Handling Horizontal Relative Motion Right (ERHPR) Proportional Printing (ERPSPM) Set All Horizontal Tabs (ERRHT) Set Double-Height and Width Characters (EREDHW) Set Double-Width Characters (EREDW) Set Horizontal Margins (ERSLRM) Set Horizontal Spacing to 12 Char/Inch (ER12CPI) Set Horizontal Tabs (ERSHT) Set Single-Width Characters (ERDDW) 4.5 Vertical Form Handling Clear Bottom Margin (ERCBM) Disable Automatic Line Feed (ERDALF) Enable Automatic Line Feed (EREALF) Set Bottom Margin (ERSBM) Set Form Length (ERSFL) Set Form Length in Inches (ERSFLI) Set Graphics Vertical Units (ERSVU) Set Top of Form (ERSTOF) Set Vertical Pitch (ER8LI) Set Vertical Pitch (ER10LI) Set Vertical Pitch (ERNLI1) Set Vertical Pitch (ERNLI2) Set Vertical Pitch (ERNLI3) Set Vertical Tabs (ERSVT) Variable Line Feed (ERNLI4) 4.6 Paper Fault Handling Disable Paper-Out (ERDPO) Enable Paper-Out (EREPO) 4.7 Directional Printing Control Set Bidirectional Printing (ERDUD) Set Unidirectional Printing (EREUD) 4.8 Alternative Character Set Mapping Print Single Character from All Characters Set (ERSSACS) Select All Characters Set (ERC0ACS) Select Character Set 1 (A) (ERC01) Select Character Set 2 (B) (ERC02) 4.9 Printing Mode and Attributes Color Printing Disable Shadow Bold (ERDBD) Enable Overscore (EREOL) Enable Shadow Bold (EREBD) Enable Subscript (ERESCR) Enable Superscript (ERESCR) Enable Underline (EREUL) Reset Overscore (ERDOL) Reset Script (ERDSCR) Reset Underline (ERDUL) Select Printing Mode (ERSPM) Set Draft (ERDHR) Set NLQ (EREHR) 4.10 Graphics Mode 480 Bit-Image Graphics Mode (ER60DPIG) 960 Bit-Image Graphics Mode (ER120DPIG) 960 Bit-Image Graphics Mode, Normal Speed (ER120DPIAG) 1920 Bit-Image Graphics Mode (ER240DPIG) High-Resolution Graphics (ERAGM) Set Graphics Mode 4.11 Downloading Character Images Character Image Download (24-Wire) Character Image Download (24-Wire Lookup Table) Character Image Download (24-Wire Proportional Spacing) 5 Downloading a Character Image 5.1 Character Bitmap 5.2 Lookup Table 5.3 Font File Identification 5.4 Font Descriptor 5.5 Downloading a New Font 5.6 Modifying an Existing Font File 5.7 Addressing 5.8 Proportional Spacing 6 Character Sets 6.1 Code Page Layout in This Chapter 6.2 Relationship Between Code Pages and Character Sets A IBM Proprinter Emulation Quick Reference FIGURES 6-1 Character Set 1 (A) and 2 (B) - Left Half, All Code Pages 6-2 Character Set 1 (A) - Right Half, Code Page 437 Only 6-3 All Characters Set - Left Half, All Code Pages 6-4 Code Page 210 Greece - Right Half 6-5 Code Page 220 Spain - Right Half 6-6 Code Page 437 U.S.A. - Right Half 6-7 Code Page 850 Multilingual - Right Half 6-8 Code Page 852 Latin-2 - Right Half 6-9 Code Page 857 Turkish - Right Half 6-10 Code Page 860 Portugal - Right Half 6-11 Code Page 862 Hebrew - Right Half 6-12 Code Page 863 Canada-French - Right Half 6-13 Code Page 865 Norway - Right Half 6-14 Code Page 866 Cyrillic - Right Half TABLES 1-1 Line Terminators 1-2 Non-Selectable Initial State Values 1-3 Horizontal Pitches 1-4 Horizontal Pitch and Width Transformations 3-1 Control Character Set Variations 4-1 ERSIC Init Parameter 4-2 ERSIC Parm1 4-3 ERSIC Parm2 4-4 EREDHW Parameter 5 Values 4-5 EREDWH Parameter 6 Values 4-6 ERSVU Parameters 4-7 ERSPM Printing Modes 4-8 Mapping of Graphics Data Byte to Printhead 4-9 ERAGM Horizontal Density Values 4-10 24-Wire Printhead Mapping 4-11 Graphics Mode Byte Values 4-12 Data Entry When Downloading Lookup Table Data 5-1 Font Descriptor Byte 6-1 Code Page/Character Set Interpretations A-1 Terminal Management A-2 Horizontal Form Handling A-3 Vertical Form Handling A-4 Paper Fault Handling A-5 Directional Printing Control A-6 Alternative Character Set Mapping A-7 Printing Mode and Attributes A-8 Graphics Mode A-9 Downloading Character Images