Appendix B

Control Code Summary

This appendix gives a brief summary of the P-80 control codes. You cause a control code to be sent to an output device by using another command. The most common command for sending a code to the screen is PRINT and to the printer is LPRINT. If your computer does not use these commands, check its reference manual and substitute the statements required by your computer.

Using BASIC as an example, you can activate a control code on most computer systems by using LPRINT CHR$(27) followed by CHR$(n), where n is a number from the decimal (DEC) column below. For a few codes, those with a dash in the ESC column, you omit the (ESC) code-CHR$(27). The (ESC) sequence may be shortened by using (in quotation marks) the character in the symbol column instead of CHR$(n). For example, the command for turning on Emphasized can be entered as:

LPRINT CHR$(27)CHR$(69) or LPRINT CHR$(27)"E"

If you are using another programming language or command, be sure to check your system documentation for the proper syntax to send codes to the printer.

 

Abbreviations:

cpi = characters per inch

 

 

cps = characters per second

ESC Dec Hex Symbol Function

9 09 HT

Horizontal tab. Empties the printer buffer,

 

 

then moves the print head to the next tab

 

 

stop.

B-l