Thank you so much! I used poll to check for anything to read from stdin and
it worked flawlessly. Here's the code. It does not have any context, but it
is an example of how to use poll:
'(loop
(eval (loadRepeat))
(wait 100)
(T (and (poll 0) (= "53" (line T)))
On Mon, Apr 24, 2023 at 06:45:06AM +0200, Danilo Kordic wrote:
> I would use Linux.epoll. pil doesn't have it... yrt.
PicoLisp has 'poll', which uses poll(2) or ppoll(2) internally.
☺/ A!ex
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Hi polifemo,
> I have a loop that executes a prg and then waits for the user to input
> something. If the user does not input anything within the timeout, the
> waiting is aborted and the loop restarts.
> The problem is that, I want the timeout to be much faster, but 'abort only
> works in
I would use Linux.epoll. pil doesn't have it... yrt.
On Mon, Apr 24, 2023, 06:10 polifemo wrote:
> I have a loop that executes a prg and then waits for the user to input
> something. If the user does not input anything within the timeout, the
> waiting is aborted and the loop restarts.
> The