Sha256: 2efb6f3018fab842b0c2c4a2d1275747167e14a372ee86a7ed1c37bd17caa418

Contents?: true

Size: 284 Bytes

Versions: 13

Compression:

Stored size: 284 Bytes

Contents

module Vedeu

  # Vedeu can respond to various signals which are handled here.
  #
  module Traps

    Signal.trap('INT') { exit! }

    Signal.trap('TERM') { exit! }

    #TTIN
    #USR1
    #USR2

    Signal.trap('SIGWINCH') { Vedeu.trigger(:_resize_) }

  end # Traps

end # Vedeu

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
vedeu-0.4.11 lib/vedeu/traps.rb
vedeu-0.4.10 lib/vedeu/traps.rb
vedeu-0.4.9 lib/vedeu/traps.rb
vedeu-0.4.8 lib/vedeu/traps.rb
vedeu-0.4.7 lib/vedeu/traps.rb
vedeu-0.4.6 lib/vedeu/traps.rb
vedeu-0.4.5 lib/vedeu/traps.rb
vedeu-0.4.4 lib/vedeu/traps.rb
vedeu-0.4.3 lib/vedeu/traps.rb
vedeu-0.4.2 lib/vedeu/traps.rb
vedeu-0.4.1 lib/vedeu/traps.rb
vedeu-0.4.0 lib/vedeu/traps.rb
vedeu-0.3.5 lib/vedeu/traps.rb