summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRyan Fitzgerald <rwfitzge@gmail.com>2013-11-09 16:50:16 -0800
committerRyan Fitzgerald <rwfitzge@gmail.com>2013-11-09 16:50:16 -0800
commitdef1d745a93e82367b72249c70f2a34b6161a7a3 (patch)
tree340a51c83303d314196539ce47a53d115a7f8638 /lib
parent0928123eb4aacd5fb93485efed6a0f1204b41469 (diff)
downloadpry-def1d745a93e82367b72249c70f2a34b6161a7a3.tar.gz
Reset color before printing SimplePager prompt
Diffstat (limited to 'lib')
-rw-r--r--lib/pry/pager.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/pry/pager.rb b/lib/pry/pager.rb
index 1e67b524..725439f3 100644
--- a/lib/pry/pager.rb
+++ b/lib/pry/pager.rb
@@ -93,8 +93,10 @@ module Pry::Pager
@tracker.record line
if @tracker.page?
- @out.puts "\n<page break> --- Press enter to continue " \
- "( q<enter> to break ) --- <page break>"
+ @out.print "\n"
+ @out.print "\e[0m" if Pry.color
+ @out.print "<page break> --- Press enter to continue " \
+ "( q<enter> to break ) --- <page break>\n"
raise StopPaging if Readline.readline.chomp == "q"
@tracker.reset
end