guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Q about interrupt and catch


From: Mike Gran
Subject: Q about interrupt and catch
Date: Sun, 11 Jun 2017 10:50:49 -0700
User-agent: Mutt/1.8.0 (2017-02-23)

Hi all,

This is probably a simple question, but, I can't figure it out.

I have a program with a big main loop like this

(while #t
 (let ((c (read-char port)))
   (cond
    ... many different possible operations, depending on c
    )))

I want to make it so, when the program receives a SIGINT, it aborts
the operation in progress and restarts this big main loop.

Any hints?

Thanks,
Mike Gran



reply via email to

[Prev in Thread] Current Thread [Next in Thread]