A 300/1200 baud terminal program for the Sinclair QL and a Hayes-compatible modem on ser2. It has a bell: an incoming BEL beeps, and the up-arrow key sends one. ALT CTRL C sends a CTRL C, which the QL’s operating system otherwise traps, for the Sinclair bulletin boards that use it to end a message; F5 leaves the terminal.
Load and run it with the modem on ser2, choose H (1200) or L (300) baud, then talk to the modem with AT commands. The article says it works even better compiled. The REM lines ask for attribution.
Published in the BCS Sinclair-Timex User Group Newsletter January 1988 (Telecommunications on the QL).
Source Code
1 REMark 300/1200 baud terminal
2 REMark MIKE_TERM
3 REMark developed by
4 REMark MICHAEL MITCHELL
5 REMark attribution requested
6 REMark Sinclair/Timex User Group
7 REMark Boston Computer Society
100 WINDOW 465,204,6,0
105 BORDER 1,0,7: LB=127
110 CLS: POKE 163976,255: CLS#0
120 PRINT#0,,"Choose Baud: H=1200, L=300"
130 IF INKEY$(-1)=='h' THEN BAUD 1200: ELSE BAUD 300
140 CLS#0 : OPEN #5,ser2i
150 PRINT#0,,"F5=quit","ALT^C=^C", "↑=BEL"
160 REPeat term
170 terminal:PRINT#0,,'Exit?(y/n)'
180 IF INKEY$(-1)=='y' THEN EXIT term
190 END REPeat term
200 CLOSE#5
205 PRINT#0,,"Re-run/Quit? (r/q)"
210 IF INKEY$(-1)=="r" THEN RUN: ELSE STOP
220 DEFine PROCedure terminal
230 REPeat key_loop
240 a=CODE(INKEY$(#5,0))&&LB
250 IF a=13 THEN PRINT
260 IF a=7 THEN BEEP 2000,15
270 IF a>31 THEN PRINT CHR$(a);
280 b=CODE(INKEY$)
290 IF b=248 THEN EXIT key_loop
300 IF b=255 THEN b=0
310 IF b=0 THEN NEXT key_loop
320 IF b=10 THEN b=13
330 IF b=208 THEN b=7
340 PRINT #5,CHR$(b);
350 END REPeat key_loop
360 RETurn
370 END DEFine terminalNote: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.