HELP Please!

I really need help to stop control + c from stopping my the program.
Any Ideas?


Signal.trap(‘INT’) do
puts ‘Strg+c (SigInt) blocked for your convenience because it’s also the
shortcut for copy.’
puts ‘Use the command instead, or strg+z (SigKill) if you must
terminate this program.’

loop do
break if $exit
sleep 0.0001

Signal.trap(“INT”) { $exit=true }

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs