# File lib/pry/helpers/base_helpers.rb, line 127 def simple_pager(text, output=output()) text_array = text.lines.to_a text_array.each_slice(page_size) do |chunk| output.puts chunk.join break if chunk.size < page_size if text_array.size > page_size output.puts "\n<page break> --- Press enter to continue ( q<enter> to break ) --- <page break>" break if $stdin.gets.chomp == "q" end end end