Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!cs.umn.edu!uc!shamash!timbuk!mpj From: mpj@sequoia.cray.com (M. P. Johnson) Newsgroups: comp.sys.atari.st Subject: GFA Basic timeout INP possible ? Keywords: GFA Message-ID: <035236.9564@timbuk.cray.com> Date: 28 Jun 91 10:02:37 GMT Sender: mpj@sequoia (M. P. Johnson) Organization: Cray Research, Inc. Lines: 19 Hi there, Some BASICs include a timeout option for the INP(#n) function which polls for a byte on an input port. For example, the Sinclair QL had A=INP(#1,5) which meant "if you get no input from the port #1 within 5 seconds, return zero and continue". Some BASICs use SNS(#n) which returns immediately (with 0 if no input was present) so that the program can continue. Does anyone know if GFA Basic will allow this ? Apparently not; so far my programs hang on the INP if there is no more input. I'd like to unblock the situation without manual intervention! I am hoping there is some darker way of checking for data in the input buffer for the port. Thanks, Marvin.