CP/M Screen Control Sequences

The following exemplary sequences are taken from the TURBO Pascal file TINST.DTA1.

Machine/TerminalScreen Cursor settingHome cursor Erase screenInvers on Invers offErase to end of line Insert lineErase line
AMSTRAD Joyce31x90 ESC Y y+32 x+32ESC E ESC HESC q ESC pESC K ESC LESC M
ANSI24x80 ESC [ y;xHESC [2J ESC [fESC [1m ESC [0mESC [K ESC [1LESC [1M
ADM 3A24x80 ESC =y+32 x+32^Z
DEC Rainbow24x80 ESC [y;xHESC [2J ESC [fESC [1m ESC [0mESC [K ESC [1LESC [1M
Hazeltine 150024x80 ~^Qx y~^\ ~^Y ~^_~^O ~^Z~^S
Kaypro24x80 ESC =y+32; x+32^Z ESC C1 ESC B1^X ^MESC E^MESC R
Liberty24x80 ESC =y+32; x+32^Z ESC ) ESC (ESC T ESC EESC R
Morrow MDT-2024x80 ESC =x+32; y+32^Z ESC ) ESC (ESC T ESC EESC R
Osborne 124x80 ESC =y+32; x+32^Z ESC ( ESC )ESC T ESC EESC R
Otrona Attache24x80 ESC =y+32; x+32^Z ESC HESC U$ ESC U SPCESC K ESC LESC M
Soroc 120/Apple CP/M24x80 ESC =y+32; x+32ESC * ESC ) ESC (ESC T
SSM-UB324x80 ESC x;yESC 2J ESC 1;1ESC 7U ESC 0UESC K ESC LESC M
Tandberg TDV 221524x80 ^Py x^Y ESC [0m ESC [2mESC [0K ESC [LESC [M
Texas Instruments25x80 ESC [y;xHESC [2J ESC [fESC [1m ESC [0mESC [K
Visual 20024x80 ESC Yy+32 x+32ESC v ESC 3 ESC 4ESC x ESC LESC M

ESCmeans control character„^["(0x1B)
SPCmeans space„ "(0x20)

1. The utility TERMFILE.MAC allows selection of terminal defintions (one or all) to be dumped into file TINST.TXT formatted in ASCII