[comp.sys.handhelds] "LineInput" from ser port?

LEIF@SLACVM.SLAC.STANFORD.EDU (03/31/91)

I am working on a project for the HP48SX for which I need to accept data from
the serial port as soon as it receives a carriage return, no sooner.  This is,
I think, similar to one of the uses of BASIC's "LineInput" statement.  Does
anyone have any suggestions as to how this could be implemented using the
low-level IO functions available on the 48?

Note that data will be incoming periodically on the serial wire, and that I
would like to force the buffer to be SRECV'ed *ONLY* when a CR is received,
signaling the end of the transmission of any given packet.

Thanks in advance for any help, input, suggestions, or whatever!

Leif Johnson                                     Leif@SLACVM.SLAC.STANFORD.EDU