1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Reset color before printing SimplePager prompt

This commit is contained in:
Ryan Fitzgerald 2013-11-09 16:50:16 -08:00
parent 0928123eb4
commit def1d745a9

View file

@ -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