[fpc-pascal] Detecting console close with red X on windows

Kevin Lyda kevin at ie.suberic.net
Sun May 19 14:29:49 CEST 2019

At least on Unix systems I'd assume the answer was to write a signal
handler: https://www.freepascal.org/docs-html/rtl/baseunix/fpsigaction.html


On Sun, May 19, 2019 at 1:23 PM James Richters
<james at productionautomation.net> wrote:
> Is there a way I can detect that a user has pushed the red X in the upper right corner to close the console window in a free pascal console application so I can save some files before the program terminates?
> James
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Kevin Lyda
Galway, Ireland

More information about the fpc-pascal mailing list