Appendix B

Control Codes in Numeric Order

You can use any of the methods explained in Chapter 4 to send these control codes to your LX-80. If you use MBASIC, you send a control code using LPRINT CHR$(27) followed by CHR$(n), where n is a number from the decimal (Dee) column below. For a few codes, those with a dash in the ESC column, you omit the ESCape code. For the codes above decimal 27, you can use either the character in the symbol column (in quotation marks) or CHR$(n). For exam- ple, the command for turning on emphasized can be entered as:

LPRINT CHR$(27)CHR$(69)orL,PRINT CHR$(27)“E”

See Chapter 4 and your system documentation for other methods of sending codes to the printer.

Some applications programs can use control key codes for decimal codes O-26. See the control key chart at the end of this appendix or the Quick Reference Card for a complete list of control key values.

Abbreviations: cpi = characters per inch cps = characters per second

ESC Dec Hex Symbol Function

000 N U L Terminates horizontal and vertical tab setting ESCape sequences.

7

07

BEL

Sounds beeper.

8

08

BS

Backspace. Empties the printer buf-

 

 

 

fer, then moves the print head left 1

 

 

 

space in the current pitch.

9

09

HT

Horizontal tab. Empties the printer

 

 

 

buffer, then moves the print head to

 

 

 

the next tab stop.

B-l