HP3000-L Archives

November 1997, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Date:
Wed, 12 Nov 1997 11:43:08 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (24 lines)
>|Jeff Woods wrote:
>|> Use FCONTROL mode 4 to set a timeout on the FREAD waiting for the user
>|> input.  When the read times out, then you will get a zero length return
>|> which you can interpret as no data input.
>|
>|I *think* you also get FSERR 22 (Software time-out).
>
>Now that you mention it, I think so too.
>
>As I said it's been a few years.  :)

Actually, if the read is directed at a DTC port, you might get a
non-zero return from FREAD.  If the user had typed 'hello' prior to
the read timing out, FREAD will return a length of 5 _and_ CCL ->
FSERR22.  The entered data will be accessable in the buffer passed to
FREAD.  This is a newish feature in MPE terms, introduced I think
about MPE/XL 2.1 or so.

This doesn't work on a read to a VT port, though.

------------
Randy Medd
Telamon, Inc.

ATOM RSS1 RSS2