February 1st, 2005, 06:42 PM
I am looking for a way to have my computer do a function when the user terminates the app by ctrl-c, i am not to worried about other methods but if your way can handle more than just ctrl-c then i would love to see that too.
February 2nd, 2005, 03:46 AM
In python you would catch the keyboard interrupt exception:
Just a somewhat stupid example for illustration:
run the main program
do something else
for i in range(100):