lib/birdwatcher/concerns/presentation.rb in birdwatcher-0.3.1 vs lib/birdwatcher/concerns/presentation.rb in birdwatcher-0.4.0
- old
+ new
@@ -112,11 +112,10 @@
# @param text [String] Text to page
#
# If the text is long, it will be automatically paged with the system's
# currently configured pager command (usually `less`).
def page_text(text)
- ::TTY::Pager::SystemPager.new.page(text)
- rescue Errno::EPIPE
+ Birdwatcher::Console.instance.page_text(text)
end
end
end
end