Did you know ... | Search Documentation: |
Packs (add-ons) for SWI-Prolog |
Title: | Send output to user's preferred pager |
---|---|
Rating: | Not rated. Create the first rating! |
Latest version: | 0.1.0 |
SHA1 sum: | a5d217db937694b16fcee888e5db981a1dbbfbc2 |
Author: | Michael Hendricks <michael@ndrix.org> |
Maintainer: | Michael Hendricks <michael@ndrix.org> |
Packager: | Michael Hendricks <michael@ndrix.org> |
Home page: | https://github.com/mndrix/pager |
Download URL: | https://github.com/mndrix/pager/archive/v0.1.0.zip |
No reviews. Create the first review!.
Version | SHA1 | #Downloads | URL |
---|---|---|---|
0.1.0 | 504429256c1e42ba7a50b11edc0233539557b181 | 12 | https://github.com/mndrix/pager/archive/v0.1.0.zip |
a5d217db937694b16fcee888e5db981a1dbbfbc2 | 1 | https://github.com/mndrix/pager/archive/v0.1.0.zip |
:- use_module(library(pager)). lots_of_lines :- forall(between(1,40,N),writeln(N)). main :- with_pager(lots_of_lines).
Send the output of a predicate through the user's preferred pager. It's helpful
for scripts which generate output for a user's terminal. You can think of it
like calling a mythical with_output_to(pager,Goal)
.
Using SWI-Prolog 7.1 or later:
?- pack_install(pager).
This module uses semantic versioning.
Source code available and pull requests accepted at http://github.com/mndrix/pager
Pack contains 7 files holding a total of 3.5K bytes.