NeoMutt  2023-11-03-85-g512e01
Teaching an old dog new tricks
No Matches
config.c File Reference

Config used by libpager. More...

#include "config.h"
#include <stddef.h>
#include <stdbool.h>
#include "mutt/lib.h"
#include "config/lib.h"
+ Include dependency graph for config.c:

Go to the source code of this file.


const char * pager_get_pager (struct ConfigSubset *sub)
 Get the value of $pager.
bool config_init_pager (struct ConfigSet *cs)
 Register pager config variables - Implements module_init_config_t -.


static struct ConfigDef PagerVars []
 Config definitions for the Pager.

Detailed Description

Config used by libpager.

  • Richard Russon

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see

Definition in file config.c.

Function Documentation

◆ pager_get_pager()

const char * pager_get_pager ( struct ConfigSubset sub)

Get the value of $pager.

subConfig Subset
Return values
strExternal command to use
NULLThe internal pager will be used
If $pager has the magic value of "builtin", NULL will be returned

Definition at line 103 of file config.c.

105 const char *c_pager = cs_subset_string(sub, "pager");
106 if (!c_pager || mutt_str_equal(c_pager, "builtin"))
107 return NULL;
109 return c_pager;
const char * cs_subset_string(const struct ConfigSubset *sub, const char *name)
Get a string config item by name.
Definition: helpers.c:292
bool mutt_str_equal(const char *a, const char *b)
Compare two strings.
Definition: string.c:798
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ PagerVars

struct ConfigDef PagerVars[]

Config definitions for the Pager.

Definition at line 38 of file config.c.