Re: your mail

2017-08-26 Thread Bruno Franco
That is just what I needed! thanks alex

On Sat, Aug 26, 2017 at 12:32 AM, Alexander Burger 
wrote:

> Hi Bruno,
>
> > I'm writing a script that shows a person a math expression (like "2 + 3")
> > waits for an answer, then returns if its right or wrong.
> > What I want though, is for it to wait something like 3 seconds and, if
> > there is no input, assume the user doesn't know and return "WRONG".
>
> The easiest is if you just wait for the next key stroke:
>
>(key 3000)
>
> this returns the key if one was pressed, otherwise NIL.
>
>
> To wait for a full line of input, you could use 'abort':
>
>(abort 3 (line T))
>
> This also returns the line, or NIL if timed out.
>
> ♪♫ Alex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>


Re: your mail

2017-08-25 Thread Alexander Burger
Hi Bruno,

> I'm writing a script that shows a person a math expression (like "2 + 3")
> waits for an answer, then returns if its right or wrong.
> What I want though, is for it to wait something like 3 seconds and, if
> there is no input, assume the user doesn't know and return "WRONG".

The easiest is if you just wait for the next key stroke:

   (key 3000)

this returns the key if one was pressed, otherwise NIL.


To wait for a full line of input, you could use 'abort':

   (abort 3 (line T))

This also returns the line, or NIL if timed out.

♪♫ Alex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: your mail

2017-04-19 Thread Alexander Burger
Ooops!

On Wed, Apr 19, 2017 at 08:12:11AM +0200, a...@software-lab.de wrote:
> 
> -- 
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Rowan, are you sure? I tried your fix, but now it seems the mail
body is lost? Any idea?

♪♫ Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe