diff options
Diffstat (limited to 'src/libmain/shared.hh')
-rw-r--r-- | src/libmain/shared.hh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libmain/shared.hh b/src/libmain/shared.hh index c74e7cbc197d..c56203daefa2 100644 --- a/src/libmain/shared.hh +++ b/src/libmain/shared.hh @@ -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; } |