LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

React to Ctrl-C in terminal

Is there any way of reacting to the event where a user presses Ctrl-C in the windows terminal? 


I have tried using the EVENT_END_TASK and the InstallMainCallback function, and this does react to when i try to close the application via the taskbar button, however it does not seem to react when i close the program via the windows terminal. Is there any way of detecting this event?

 

 

0 Kudos
Message 1 of 4
(1,400 Views)

Use signal(SIGTERM, ...);

0 Kudos
Message 2 of 4
(1,398 Views)

I've tried this also, but it does not seem to work either

0 Kudos
Message 3 of 4
(1,387 Views)

Sorry, I haven't tried it in forever on Windows. It works fine on Linux though... 😆

Have you tried it with a callback function or with SIG_IGN ?

0 Kudos
Message 4 of 4
(1,372 Views)