enum

TermBuf::Input::Signals::Mode

Inherits Enum < Comparable < Value < Object

What a delivered signal does.

Constants

Exit = 0

Run the #before_exit hooks, reset the signal, and re-raise it, so the process dies of what it was sent and its exit status says so.

Event = 1

Deliver an Events::Signal and carry on. What the application does about it is the application's business.

WarnThenExit = 2

Deliver an Events::Signal, and Exit once #threshold of them have arrived. The first press asks, the last one insists.

Instance methods

event?

Returns true if this enum value equals Event

Source
exit?

Returns true if this enum value equals Exit

Source
warn_then_exit?

Returns true if this enum value equals WarnThenExit

Source