On Mon, Oct 05, 2015 at 10:08:42AM -0400, Greg Reagle wrote: > On 10/04/2015 11:32 AM, Dimitris Papastamos wrote: > >Yes there are plans for a pager. > > I am curious why that is not listed in the TODO for sbase. > > >The heirloom project has a pg > >implementation I think. > > 2425 lines: Heirloom pg > http://heirloom.cvs.sourceforge.net/viewvc/heirloom/heirloom/pg/pg.c?view=markup > > 2049 lines: Heirloom more > http://heirloom.cvs.sourceforge.net/viewvc/heirloom/heirloom/more/more.c?view=markup > > 2215 lines: Linux more > https://github.com/karelzak/util-linux/blob/master/text-utils/more.c > > As far as I can tell, NetBSD and OpenBSD seem to depend on GNU less. > > ~/a/less-458$ cat *.c *.h | wc -l > 26741
What about Plan9's `p`? Very basic implementation in about 31 lines: https://github.com/mkopta/dgutils/blob/master/src/p.c