PilotinControl has asked for the wisdom of the Perl Monks concerning the following question:
Hello Again Monks! I am using Activestate Perl, on WinXP, using Win32 modules, and I am having an issue with disabling the Control +C functions. I would like the users of the script to just be able to use the selections on the menu and quit the program using that selection instead of Ctrl+C
$SIG{INT}='IGNORE'; or $SIG{INT}= \&inthandler; sub inthandler { structure::begin(); }
All that does is go back to the main screen and Ctrl+C resumes normal actions. Any suggestions? Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Disable Control +C
by Not_a_Number (Prior) on Mar 12, 2013 at 19:11 UTC | |
by PilotinControl (Pilgrim) on Mar 12, 2013 at 20:29 UTC | |
by Athanasius (Archbishop) on Mar 13, 2013 at 02:30 UTC | |
by PilotinControl (Pilgrim) on Mar 13, 2013 at 07:13 UTC |