2020-11-09 05:23:58 +01:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
2012-07-18 19:07:51 +02:00
|
|
|
#pragma once
|
2011-07-07 02:34:35 +02:00
|
|
|
|
2012-07-20 09:06:26 +02:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
2013-05-03 04:51:50 +02:00
|
|
|
#include "macro.h"
|
|
|
|
|
2018-11-11 12:56:29 +01:00
|
|
|
typedef enum PagerFlags {
|
|
|
|
PAGER_DISABLE = 1 << 0,
|
|
|
|
PAGER_JUMP_TO_END = 1 << 1,
|
|
|
|
} PagerFlags;
|
|
|
|
|
|
|
|
int pager_open(PagerFlags flags);
|
2011-07-07 02:34:35 +02:00
|
|
|
void pager_close(void);
|
2013-05-03 04:51:50 +02:00
|
|
|
bool pager_have(void) _pure_;
|
2014-07-21 00:23:53 +02:00
|
|
|
|
|
|
|
int show_man_page(const char *page, bool null_stdio);
|