-
Notifications
You must be signed in to change notification settings - Fork 4
/
README
65 lines (44 loc) · 1.97 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
IO::Pager & IO::Pager::Perl
=====================
IO::Pager - Select a pager and pipe text to it if destination is a TTY
IO::Pager::Perl - A pure perl pager engine
IO::Pager::Perl is used in the IO::Pager::less IO::Pager subclass,
but is also a free-standing library ready to be incorporated into
other code.
IO::Pager is lightweight and can be used to locate an available pager
and set the PAGER environment variable sanely or as a factory for
creating objects defined elsewhere such as IO::Pager::Buffered,
IO::Pager::Unbuffered, and IO::Pager::less which provides a pure perl
pager.
IO::Pager subclasses are designed to programmatically decide whether
or not to pipe a filehandle's output to a program specified in PAGER.
Subclasses may inherit from IO::Pager, and implement the IO handle
methods desired.
INSTALLATION
To install this module type the following:
perl Makefile.PL
make
# Run non-interactive tests
make test
# Run interactive tests
perl -Mblib test.pl interactive
make install
DEPENDENCIES
Multiple core modules are used:
base, Env, File::Spec, File::Which, IO::Handle, PerlIO, SelectSaver,
Symbol, Text::Wrap, Tie::Handle
Test::More is used during the installation procedure.
PORTABILITY
IO::Pager is intended to be as portable as possible, I've tested it on numerous
platform and perl version combinations. Most work fine though you may run
into quirks, it tends to be happiest under perl built with perlio not stdio.
COPYRIGHT AND LICENSE
Copyright (C) 2003-2019 Jerrad Pierce
* Thou shalt not claim ownership of unmodified materials.
* Thou shalt not claim whole ownership of modified materials.
* Thou shalt grant the indemnity of the provider of materials.
* Thou shalt use and dispense freely without other restrictions.
Or, if you prefer:
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself, either Perl version 5.0 or, at your
option, any later version of Perl 5 you may have available.