Sha256: dc5babbeaf53542ce67ac6e080fbdf26387143c8c29b10639df6a5aa262ff80b
Contents?: true
Size: 562 Bytes
Versions: 1
Compression:
Stored size: 562 Bytes
Contents
####################################################################### # example_pause.rb # # Simple demonstration of the Process.pause method. You can use # the 'rake example_pause' task to run this program. # # Modify as you see fit. ####################################################################### require 'rbconfig' require 'proc/wait3' puts "Pausing. Hit Ctrl-C to continue." if RbConfig::CONFIG['host_os'] =~ /linux|darwin/i Process.pause(2) else Process.pause("INT") end puts "Hey, thanks for hitting Ctrl-C. Continuing..." puts "Done"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
proc-wait3-1.9.1 | examples/example_pause.rb |