Re: [fpc-pascal] SysSetCtrlBreakHandler

2016-11-30 Thread Dmitry Boyarintsev
On Tue, Nov 29, 2016 at 5:13 PM, Tomas Hajny wrote: > > 1) Instead of using the special handler registered via > SetConsoleCtrlHandler (invoked in a special thread), isn't it possible to > process this event in the exception handler (running in the same thread > probably)? > Not that I'm (or MSD

Re: [fpc-pascal] SysSetCtrlBreakHandler

2016-11-29 Thread Tomas Hajny
On Tue, November 29, 2016 20:47, Dmitry Boyarintsev wrote: Hello Dmitry, > A question regarding your comment ( > http://bugs.freepascal.org/view.php?id=31023#c96393) > Specifically ad 2) > > Is it fine to safe-guard access to SpecialKey / ScanCode through the whole > crt unit? My only concern is

Re: [fpc-pascal] SysSetCtrlBreakHandler

2016-11-29 Thread Dmitry Boyarintsev
Hello Tomas A question regarding your comment ( http://bugs.freepascal.org/view.php?id=31023#c96393) Specifically ad 2) Is it fine to safe-guard access to SpecialKey / ScanCode through the whole crt unit? My only concern is that there're many places that has to be adjusted making the patch rather

Re: [fpc-pascal] SysSetCtrlBreakHandler

2016-11-28 Thread Tomas Hajny
On Mon, November 28, 2016 01:45, Dmitry Boyarintsev wrote: >> 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 pre

[fpc-pascal] SysSetCtrlBreakHandler

2016-11-27 Thread Dmitry Boyarintsev
On Sun, Nov 27, 2016 at 12:07 PM, Michael Van Canneyt < mich...@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 i