struct

TermBuf::Input::Events::Signal

Inherits TermBuf::Input::Event < Struct < Value < Object

A signal arrived and the application is the one to act on it.

Only for the signals whose mode is Input::Signals::Mode::Event or WarnThenExit; the ones that mean "stop" restore the terminal and re- raise themselves without ever reaching a channel. SIGWINCH is an event by default and arrives like any other, unless a stage takes it: termbuf's :resize consumes it and sends a resize event of its own in its place.

count is how many of this signal have arrived since the count was last cleared, counting from one. Under WarnThenExit it is what the warning is made of: an application draws "press again to quit" on the first and is gone by the last. Input::Signals#reset_count clears it.

Constructors

new(signal : ::Signal, count : Int32)
Source

Instance methods

clone
Source
copy_with(signal _signal = @signal, count _count = @count)
Source
count
signal