On Mon, May 7, 2012 at 10:20 AM, James Bragg <[email protected]> wrote: > First, I'm really enjoying learning J.
That is good to hear. > Is there a prompt verb? Would "get input" be a prompt verb? Is it possible > to get input from a user in the J Term gtk window or J console and assign it > to a variable? There is, but it's ... it's not exactly deprecated, but "neglected" might be accurate. For most purposes, the J command line is the best "prompt verb". For many other purposes, you should be building a "UI" rather than a command line interface. If you are going to stick to a command line interface, the J command line is usually the best tool for the job. This leaves a neglected niche for the spurious cases where you want a prompt. In j6.02, this worked in the GUI and I think worked in jconsole on linux/mac (but not in jconsole on windows): require'misc' prompt '$ ' $ 1 2 3 1 2 3 In J7.01, with its various front ends for jconsole (including the browser, via jhs) I do not think that this mechanism is supported robustly. (But I have not kept up to date on everything that's going on in J7.01 so maybe that aspect has been built out.) FYI, -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
