Teleprinter/teletype control program