Did you know ... Search Documentation:
Packs (add-ons) for SWI-Prolog

Package "pager"

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

Reviews

No reviews. Create the first review!.

Details by download location

VersionSHA1#DownloadsURL
0.1.0a5d217db937694b16fcee888e5db981a1dbbfbc21https://github.com/mndrix/pager/archive/v0.1.0.zip

Synopsis

:- use_module(library(pager)).
lots_of_lines :-
    forall(between(1,40,N),writeln(N)).

main :-
    with_pager(lots_of_lines).

Description

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).

Installation

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

author
- Michael Hendricks <michael@ndrix.org>
license
- unlicense

Contents of pack "pager"

Pack contains 7 files holding a total of 3.5K bytes.