I can't get the following to work.
It is on page 211 of the Power Basic User's Guide.
PB 3.5 for DOS. Doesn't work on either of two
different DOS computers. The Terminal.BAS on
the \example directory on the distribution disk
works ok on both computers! The
error message I get is error 24 - Device timeout.
The error is on the OPEN "COM1: ... " line
DEFINT a-z
$COM 1024
OPEN "COM1: 9600,N,8,1" AS #1 LEN = 1024
echo = 1
WHILE (1)
WHILE NOT INSTAT
IF LOC(1)>0 THEN
stuf$ = INPUT$(LOC(1),#1)
PRINT stuf$;
END IF
WEND
WHILE INSTAT
myinput$ = INKEY$
PRINT #1,myinput$;
IF echo THEN PRINT myinput$;
WEND
WEND
------------------
It is on page 211 of the Power Basic User's Guide.
PB 3.5 for DOS. Doesn't work on either of two
different DOS computers. The Terminal.BAS on
the \example directory on the distribution disk
works ok on both computers! The
error message I get is error 24 - Device timeout.
The error is on the OPEN "COM1: ... " line
DEFINT a-z
$COM 1024
OPEN "COM1: 9600,N,8,1" AS #1 LEN = 1024
echo = 1
WHILE (1)
WHILE NOT INSTAT
IF LOC(1)>0 THEN
stuf$ = INPUT$(LOC(1),#1)
PRINT stuf$;
END IF
WEND
WHILE INSTAT
myinput$ = INKEY$
PRINT #1,myinput$;
IF echo THEN PRINT myinput$;
WEND
WEND
------------------
Comment