[fpc-pascal] SysSetCtrlBreakHandler

Dmitry Boyarintsev skalogryz.lists at gmail.com
Mon Nov 28 01:45:52 CET 2016

On Sun, Nov 27, 2016 at 12:07 PM, Michael Van Canneyt <
michael at freepascal.org> wrote:
> If you mean in a cross-platform way, I think we would welcome patches :)
> On the subject of cross-platform console applications...

While working recently on converting libwebsockets header to FPC, I ran
into a need of adding Ctrl-Break handlers (used in sample apps).
I was actually surprised of the presence of SysSetCtrlBreakHandler function
in RTL.
But i was even more surprised it doesn't do anything useful (for console

So here's the first patch for Windows

If this one is good (or made to the state, when it's good), I'm looking
into providing the same patches for linux and darwin.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20161127/1cfa4255/attachment.html>

More information about the fpc-pascal mailing list