diff --git a/lib/byebug/interfaces/local_interface.rb b/lib/byebug/interfaces/local_interface.rb index bc9630ac6..1e56a98f4 100644 --- a/lib/byebug/interfaces/local_interface.rb +++ b/lib/byebug/interfaces/local_interface.rb @@ -1,4 +1,6 @@ # frozen_string_literal: true +require 'io/console' + module Byebug # # Interface class for standard byebug use. @@ -8,9 +10,9 @@ class LocalInterface < Interface def initialize super() - @input = STDIN - @output = STDOUT - @error = STDERR + @input = @output = @error = IO.console + Readline.input = @input + Readline.output = @output end #