Roelof K. Brouwer wrote:
How do I get J to wait for input from the keyboard?
I am not sure exactly what you are looking for, but perhaps the prompt verb may do what you want. You need to run the main verb in the ijx window.
For example, define foo: require 'misc' foo=: 3 : 0 while. 1 do. smoutput ?100 if. -. 'y' e. prompt 'again (y/n)? ' do. break. end. end. ) Now run foo: foo'' 55 again (y/n)? y 73 again (y/n)? y 58 again (y/n)? n ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
