Two problems needed solving: getting data to and from the teletype, and formatting the output to work on a piece of kit from ...