Skip to content
This repository has been archived by the owner on Feb 9, 2020. It is now read-only.

mndrix/pager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Send Prolog output through user's preferred pager

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages