Skip to content

Commit

Permalink
Merge pull request #211 from sethk/console
Browse files Browse the repository at this point in the history
Use IO.console for readline over STD{IN,OUT,ERR}.
  • Loading branch information
David Rodríguez committed Feb 19, 2016
2 parents d61d9f0 + 5c3a83f commit bb98cd6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/byebug/interfaces/local_interface.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# frozen_string_literal: true
require 'io/console'

module Byebug
#
# Interface class for standard byebug use.
Expand All @@ -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

#
Expand Down

0 comments on commit bb98cd6

Please sign in to comment.