APPENDIX A: Sample Dumb-Terminal Program

Appendix A. Sample Dumb-Terminal

Program

10REM *** DUMB-TERMINAL PROGRAM FOR THE interface converter

20

REM ***

Running under IBM BASIC

30

REM ***

This Program allows direct interaction between the

40REM *** IBM PC and an IEEE bus device through the interface converter.

50REM *** The interface converter must be configured as the IEEE bus

60REM *** controller and have Talk-Back on Terminator enabled.

70REM ***

80REM ***

90REM ***

100

 

CLS

110

'

Open the serial communications port and set the serial parameters

120

 

OPEN "COM1: 9600,n,8,2,cs,ds" AS 1

130

'

Display any characters received from the COM1 port

140

 

IF LOC(1) THEN PRINT INPUT$ (LOC(1) ,1);

150' Transmit any key presses from keyboard to the COM1 port and to the screen

160 K$=INKEY$

170PRINT #1,K$; : PRINT K$;

180GOTO 140 ' Do it again

65

Page 65
Image 65
Black Box IC026AE-R2, IC026A-R2 manual Appendix A. Sample Dumb-Terminal Program, Cls