Thanks for clarifying,  I have everything working well now in my real program,  
 I didn’t need to do anything other than save and close some files, so I have 
plenty of time to get everything done.

 

James

 

From: fpc-pascal <[email protected]> On Behalf Of Sven 
Barth via fpc-pascal
Sent: Sunday, May 19, 2019 1:15 PM
To: FPC-Pascal users discussions <[email protected]>
Cc: Sven Barth <[email protected]>
Subject: Re: [fpc-pascal] Detecting console close with red X on windows

 

James Richters <[email protected] 
<mailto:[email protected]> > schrieb am So., 19. Mai 2019, 19:10:

Thanks!    That was quite helpful!   I have a test program kind of working.  

I notice I only  get 5 seconds to do what I am going to before it closes, and I 
also notice that my program can no longer respond to keystrokes after I hit the 
red X.    How do other programs get around this?  For example if I open word 
for windows and type something and hit the X it asks if I want to save it and 
will wait indefinitely  for a response.   Is this a limitation because I am 
running console application,    Is there a way I can do this with my console 
application as well

 

Correct, that is a limitation of the console no matter the operating system. 

 

Regards, 

Sven 

_______________________________________________
fpc-pascal maillist  -  [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to