Found in misc.ijs
prompt=: 3 : 0
'' prompt y
:
if. IFCONSOLE do.
y 1!:2 [ 4
1!:1 ] 1
else.
smprompt_jijs_ y;x
inp=. 1!:1 ] 1
len=. #y
(len * y -: len {. inp) }. inp
end.
)
On Sat, Jan 23, 2010 at 9:14 PM, Tom Arneson <[email protected]> wrote:
> I seem to remember a verb that would prompt for user input without using a
> gui.
>
> Something like:
>
>
>
> r=. prompt 'radius: '
>
>
>
> which would display:
>
>
>
> radius:
>
>
>
> and take input up to a CR and then return that input.
>
>
>
> Does anyone remember this and have the definition of prompt?
>
>
>
> Tom Arneson
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm