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:
parent
894fa5e42d
commit
392430b2c4
4 changed files with 56 additions and 2 deletions
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue