Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/irb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def command?(code)
def configure_io
if @context.io.respond_to?(:check_termination)
@context.io.check_termination do |code|
if Reline::IOGate.in_pasting?
if Reline.core.io_gate.in_pasting?
rest = @scanner.check_termination_in_prev_line(code, local_variables: @context.local_variables)
if rest
Reline.delete_text
Expand Down
6 changes: 3 additions & 3 deletions lib/irb/easter-egg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ def render_frame(i)
interrupted = false
prev_trap = trap("SIGINT") { interrupted = true }
canvas = Canvas.new(Reline.get_screen_size)
otio = Reline::IOGate.prep
Reline::IOGate.set_winch_handler do
otio = Reline.core.io_gate.prep
Reline.core.io_gate.set_winch_handler do
canvas = Canvas.new(Reline.get_screen_size)
end
ruby_model = RubyModel.new
Expand All @@ -140,7 +140,7 @@ def render_frame(i)
end
rescue Interrupt
ensure
Reline::IOGate.deprep(otio)
Reline.core.io_gate.deprep(otio)
print "\e[?25h" # show cursor
trap("SIGINT", prev_trap)
end
Expand Down
Loading