bash catch ctrl-c in a script
10 PRINT "Press Ctrl-C to exit"
20 ON ERROR GOTO 100
30 DO
40 LOOP UNTIL FALSE
100 PRINT "Ctrl-C caught, exiting"
110 END
10 PRINT "Press Ctrl-C to exit"
20 ON ERROR GOTO 100
30 DO
40 LOOP UNTIL FALSE
100 PRINT "Ctrl-C caught, exiting"
110 END