I already have local input = tonumber(read()).  I changed it so that if
tonumber(read()) isn't valid it will restart the whole thing automagically.


On Sat, Apr 5, 2014 at 1:48 AM, skwerlman <notifications@github.com> wrote:

> In apis/prompt.lua:
>
> > @@ -31,14 +31,38 @@ function promptForColor(text)
> >  end
> >  function promptForNum(text, min, max)
> >   term.write(text..": ")
> > - input = tonumber(read())
> > - if min == nil then
> > + local input = tonumber(read())
>
> Just use th code I put above. It works as-is
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/SuicidalSTDz/EnderAPI/pull/39/files#r11320335>
> .
>