I am looking for a way to check for keyboard input during execution of a
J script, but *not* halt and wait for a key. What I need is a way to
check for command keystrokes and respond if any key has been pressed,
but just go on running if not.
Keys are the standard ASCII set, not necessarily function keys.
The output from the program is just scrolling text, so ideally I would
like this to work within a normal J console window. I would be willing
to work from something like an editm box, if there is a way to capture
plain vanilla keystrokes there. I see how to set up event handlers for
function keys, but not for arbitrary text keystrokes.
This seems like a feature that ought to be there. Perhaps I'm missing
something obvious, but I've been looking for this without success.
Is there a way to do this?
--
Jonathan Griffitts
AnyWare Engineering Boulder, CO, USA
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm