Skip to content
Send Prolog output through user's preferred pager
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
prolog
t
.gitignore
History.md
LICENSE
README.md
pack.pl

README.md

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

You can’t perform that action at this time.