1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-03 02:01:48 +02:00

nix-store -l: Automatically pipe output into $PAGER

This commit is contained in:
Eelco Dolstra 2014-08-20 15:12:58 +02:00
parent 894fa5e42d
commit 392430b2c4
4 changed files with 56 additions and 2 deletions

View file

@ -69,6 +69,18 @@ template<class N> N getIntArg(const string & opt,
/* Show the manual page for the specified program. */
void showManPage(const string & name);
/* The constructor of this class starts a pager if stdout is a
terminal and $PAGER is set. Stdout is redirected to the pager. */
class RunPager
{
public:
RunPager();
~RunPager();
private:
Pid pid;
};
extern volatile ::sig_atomic_t blockInt;
}