Re: interrupt signal in MSW

Gunter Königsmann <[email protected]> Sat, 5 May 2018 08:29:33 +0200
Newsgroups gmane.lisp.clisp.general
Message-ID <[email protected]>
> 
> What is "MSW"?
> 

Microsoft Windows. Seems like I have talked to the wxWidgets developers
for too long a time and have assumed part of their ideolect.


In the meantime I have found something - even if not the full solution:

On Windows a

GenerateConsoleCtrlEvent(CTRL_C_EVENT, pid)

sends an Ctrl+C event to the lisp with the pid "pid" - that is exactly
the event that arrives if Ctrl+C is pressed.

On sbcl maxima is already set up to listen to this event. On clisp this
event is currently ignored on Windows, but works on Linux. Does anyone
know how to make clisp react to it on Windows, too?

GenerateConsoleCtrlEvent(CTRL_BREAK_EVENT, pid)

acts as Ctrl+Break were pressed, instead. This event immediately crashes
clisp on Windows, currently. But that might not be a bug but a
convenient way to enter an eventually-running debugger => In case that
Ctrl+C doesn't work on Windows: Is there a way to make use of this
event, instead?

Thanks a lot,
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