summaryrefslogtreecommitdiff
path: root/src/shared/pager.h
diff options
context:
space:
mode:
authorZbigniew Jedrzejewski-Szmek <zbyszek@in.waw.pl>2012-07-20 09:06:26 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-07-23 17:57:11 +0200
commitfafb6eccc2c9e3f8d6ce0aad9cb428f8cc402b24 (patch)
tree1cf54ff0d9fa2a6d5cf36b13d8511caa0b5fc4c8 /src/shared/pager.h
parentf84b1a8c3aff81c9d80f47943e116e205c884565 (diff)
journalctl: fix ellipsization with PAGER=cat
There are other reasons for not opening the pager then the --no-pager or --follow options (described below). If the pager is not used, messages must be ellipsized. On Fri, Jul 20, 2012 at 05:42:44AM +0000, Shawn Landen wrote: > "Pager to use when --no-pager is not given; overrides $PAGER. > Setting this to an empty string or the value cat is equivalent to passing --no-pager."
Diffstat (limited to 'src/shared/pager.h')
-rw-r--r--src/shared/pager.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/pager.h b/src/shared/pager.h
index dcd61957ef..0b4afc04b8 100644
--- a/src/shared/pager.h
+++ b/src/shared/pager.h
@@ -21,5 +21,7 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-void pager_open(void);
+#include <stdbool.h>
+
+bool pager_open(void);
void pager_close(void);