epitron
9488494e6b
Some fixes to the pager.
...
We didn't send any flags to the pager, as a result ansi codes
were not applied unless the user had properly set up their LESS
env variable. This was often not the case, resulting in broken
and ugly output. This commit sends along the proper flags whenever
we use the pager, regardless of the user's LESS variable
2013-01-19 20:56:33 +01:00
Andrew Vos
d588b119d7
spelling
2012-12-07 19:55:27 +01:00
Kyrylo Silin
07137ee5e5
Add pager detection by using which
command
...
Fix issue #743 (pager gives warnings `Missing filename ("less --help"
for help)`)
Signed-off-by: Kyrylo Silin <kyrylosilin@gmail.com>
2012-11-19 23:47:03 +02:00
Havenwood
c9ee133738
chmod -x file permissions
2012-11-07 14:01:52 -08:00
Ryan Fitzgerald
322313edb7
Fix a few minor YARD issues
2012-11-03 20:59:21 -07:00
Rob Gleeson
ea3b1a145f
Replace dated API documentation for Pry::Pager.page(…).
2012-10-26 23:05:32 +02:00
Rob Gleeson
bed1a39159
Pull this value from SystemPager.default_pager.
2012-10-26 15:13:23 +02:00
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