interrupt signal in MSW

Gunter Königsmann <[email protected]> Fri, 4 May 2018 07:17:23 +0200
Newsgroups gmane.lisp.clisp.general
Message-ID <[email protected]>
Dear all,

wxMaxima (writen in C++) is a powerful GUI for maxima, an extremely
versatile and powerful computer algebra system written in lisp.

Both programs talk to each other using a network socket. On maxima's
side the code that redirects its stdin and stdout to the socket reads:

    (setq *standard-input* sock)
    (setq *standard-output* sock)
    (setq *error-output* sock)
    (setq *terminal-io* sock)
    (setq *trace-output* sock)

Often maxima comes in two flavours:
 - compiled with sbcl (extremely fast!)
 - compiled with clisp (good-natured and extremely memory-efficient).

wxMaxima offers a "Ctrl+G" shortcut that interrupts the current
calculation. On Linux and MacOs this is done by sending maxima a SIGINT
signal. Don't know what lisp magic handles this signal then.


On MSW maxima when compiled with SBCL and GCL creates a separate thread
that offers a shared memory location wxMaxima can write to in order to
tell this thread to interrupt maxima's current calculation.

Is there a (perhaps easier/more canonical) way to send clisp an
interrupt signal on MSW? Having a way to interrupt an endless
calculation that follows a long one would be great.

Thanks in advance,
and
Kind regards,

   Gunter.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
clisp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-list