Commit Graph

13 Commits

Author SHA1 Message Date
Rob Gleeson 602b5670a1 Respect $PAGER (shell environment variable).
Closes #736.
2012-10-26 15:10:17 +02:00
Vít Ondruch 41dbc0d4d9 Fix the less check (#712).
The exit status doesn't matter, it is always OK, but an exception is fired only when less is not available on the system.
2012-09-16 22:48:32 +02:00
Robert Gleeson ef350d3155 Comments got out of sync with code. 2012-09-16 00:35:58 +01:00
Robert Gleeson 6d147a637d Fix silly bug in Pry::Pager.page(…). 2012-09-15 22:28:06 +01:00
Robert Gleeson 7d7ec9e388 Platform agnostic.
Ref #712.
2012-09-15 21:31:15 +01:00
Robert Gleeson c8dc5d44a7 Don't try to run the system pager if 'less' is not available.
Closes #712.
2012-09-15 21:31:15 +01:00
Robert Gleeson 6a67ea418a Don't try to use the 'less' pager on Windows.
Ref #712.
2012-09-15 21:31:15 +01:00
Robert Gleeson 912073041d Add API documentation. 2012-08-09 22:52:13 +01:00
Robert Gleeson 6d9b2ae1fa Remove Pager#page. 2012-08-09 22:52:13 +01:00
Robert Gleeson faa388b94f On ENOENT, use the simple pager. 2012-08-09 16:43:46 +01:00
Robert Gleeson 21d0f656cf The SimplePager always prints to $stdout.
… because so does the system pager.
2012-08-09 15:58:49 +01:00
Robert Gleeson f65c915a76 Move 'lesspipe' to Pry::Pager::SystemPager. 2012-08-08 23:33:50 +01:00
Robert Gleeson f84e65bf04 Move the pager to Pry::Pager. 2012-08-08 22:57:56 +01:00