Thanks, Don.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Don Guinn
Sent: Saturday, January 23, 2010 22:32
To: Programming forum
Subject: Re: [Jprogramming] prompt verb

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


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to