I hoped to use CHARS() with no parms to detect pending keyboard input
without blocking, but I find that it returns "1" even if I haven't typed
a thing. Is there no way to allow asynchronous keyboard input?
SAJ <firstname.lastname@example.org> wrote:
>I hoped to use CHARS() with no parms to detect pending keyboard input
>without blocking, but I find that it returns "1" even if I haven't typed
>a thing. Is there no way to allow asynchronous keyboard input?
You don't mention what implementation of REXX on what
The REGINA documentation states that the CHARS results are
*very* dependent upon platform. Further, though, it states that
it will return 1 (or more) until EOF. If you're waiting for a
keypress, I would think that EOF hasn't yet occurred.
I'm using Regina 3.3 under Win2K. The REXXUTIL addon has
SYSGETKEY. With a small value for how long to wait, it may do
what you want (with a bit of work and experimentation).
Arthur T. - ar23hur "at" speakeasy "dot" net
Looking for a good MVS systems programmer position