summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/irb/input-method.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb
index 210d3da789..38f05d7716 100644
--- a/lib/irb/input-method.rb
+++ b/lib/irb/input-method.rb
@@ -67,7 +67,9 @@ module IRB
#
# See IO#gets for more information.
def gets
- puts if @stdout.tty? # workaround for debug compatibility test
+ # Workaround for debug compatibility test https://github.com/ruby/debug/pull/1100
+ puts if ENV['RUBY_DEBUG_TEST_UI']
+
print @prompt
line = @stdin.gets
@line[@line_no += 1] = line