I tried to run Turbo Pascal using an external terminal and for some reason, it wouldn't generate the proper ESC sequence to position the cursor so the editor won't work.

There's a TINST program that allows you to set the terminal for Turbo Pascal.

List of terminals supported by Turbo Pascal:

[Linked Image from i.imgur.com]


Turns out there's terminal remapping built into apple cpm and a configuration program called CONFIGIO (written in basic!).

[Linked Image from i.imgur.com]
[Linked Image from i.imgur.com]
[Linked Image from i.imgur.com]

So there's a "software code" that gets mapped to a "hardware code".

I think the idea is to remap the Soroc IQ-120 to whatever terminal you are actually using and you can even map the Soroc IQ-120 to itself (set the hardware codes to match the software codes).

It's just a simple translation, the "hardware code" is what's translated and sent to the hardware when it sees a "software code".