LP 4 (260-1159) Control Codes Faxback Doc. # 5811 SUMMARY OF CONTROL CODES According to the American Standard Code for Information Interchange (ASCII), there are 32 control codes in addition to the codes for the printable characters. (Control codes are sent as data, but the receiving device interprets them as abbreviated "instructions", communications-status mess- ages, etc.). To output a control code from LEVEL II BASIC, use the CHR$ function. For example: 100 LPRINT CHR$(13) 110 LPRINT CHR$(27);CHR$(14) A list of the control codes recognized by the Line Printer IV is contained in the table below. each of the control code is described in detail in the following paragraphs. Read the detail on backspacing characters carefully. CODE PRINTER FUNCTION KEYING SEQUENCE CR Print Command; Carriage Return LPRINT CHR$(13) LF Full Line Feed Forward LPRINT CHR$(138) SI Start Underline LPRINT CHR$(15) SO Stop Underline LPRINT CHR$(14) ESC LF Full Line Feed Forward LPRINT CHR$(27);CHR$(138) ESC SO Start Double-Width Characters LPRINT CHR$(27);CHR$(14) ESC SI Stop Double-Width Characters LPRINT CHR$(27);CHR$(15) ESC DC1 Select Proportional Characters LPRINT CHR$(27);CHR$(17) ESC DC3 Select 10 PI Monospaced Characters LPRINT CHR$(27);CHR$(19) ESC DC4 Select 16.7CPI Monospaced Characters LPRINT CHR$(27);CHR$(20) ESC FS Half Line Feed Forward LPRINT CHR$(27);CHR$(28) ESC RS Half Line Feed Reverse LPRINT CHR$(27);CHR$(30) BS n1 Back Space One Character LPRINT CHR$(8);CHR$(n1) n = 10 for 10 cpi mode n = 9 for 16.7 cpi mode For proportional space mode, see chart. (smm 08/04/93)