class IRB::Irb

def signal_status(status)

Evaluates the given block using the given +status+.
def signal_status(status)
  return yield if @signal_status == :IN_LOAD
  signal_status_back = @signal_status
  @signal_status = status
  begin
    yield
  ensure
    @signal_status = signal_status_back
  end
end