]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib: add pager functionality
authorDavidlohr Bueso <dave@gnu.org>
Mon, 23 Apr 2012 09:51:29 +0000 (11:51 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 23 Apr 2012 09:52:39 +0000 (11:52 +0200)
commit35717a57ac290490c464451a57c960266da3c5d4
tree911976e0aca59e705def5e20a8c79bb1753a19f8
parent89394013f620338863312d069a9b2ac5ba2abf65
lib: add pager functionality

When some program' output exceeds the terminal's dimensions, it is a nice
feature to call a pager that acts as calling 'less' to allow better user
navigation. This patch adds this functionality, based on what perf and git
have (ie: git log).

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
include/pager.h [new file with mode: 0644]
lib/Makefile.am
lib/pager.c [new file with mode: 0644]