summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJosh Cheek <josh.cheek@gmail.com>2019-05-29 20:27:56 -0500
committerJosh Cheek <josh.cheek@gmail.com>2019-05-29 20:27:56 -0500
commit6686a701167c48829cfe4dd25f9a2cbb5e76e5a2 (patch)
treed19380d6fdc7eff677f688f75c31c7db654976ca /lib
parente0e29dd12d0ab2d48059399e3aec5ce0155b4513 (diff)
downloadpry-6686a701167c48829cfe4dd25f9a2cbb5e76e5a2.tar.gz
REPL prints to the configured output, not directly to $stdout
Diffstat (limited to 'lib')
-rw-r--r--lib/pry/repl.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pry/repl.rb b/lib/pry/repl.rb
index d603e8de..a6174d5d 100644
--- a/lib/pry/repl.rb
+++ b/lib/pry/repl.rb
@@ -50,7 +50,7 @@ class Pry
return unless pry.config.correct_indent
# Clear the line before starting Pry. This fixes issue #566.
- Kernel.print(Helpers::Platform.windows_ansi? ? "\e[0F" : "\e[0G")
+ output.print(Helpers::Platform.windows_ansi? ? "\e[0F" : "\e[0G")
end
# The actual read-eval-print loop.