INPUT
ends
processing a line with a
CR
or
LF
.
This leads to a tricky situation. There are many ways different
systems end a line:
CR
,
CRLF
,
LF
.
If the ZBI program only uses
INPUT
, the next execution
of the
INPUT
command will remove the extra
LF
or
CR
,
in case of
LFCR
. However, if the program instead
uses
INBYTE
,
DATAREADY
or the
other commands, the extra
LF
will show up on the
port. Here’s a simple workaround to explicitly look for the
CRLF
that
is in use: