NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
config.c
Go to the documentation of this file.
1
22
28
29
#include "config.h"
30
#include <stdbool.h>
31
#include <stddef.h>
32
#include "
config/lib.h
"
33
37
struct
ConfigDef
MenuVars
[] = {
38
// clang-format off
39
{
"arrow_cursor"
,
DT_BOOL
,
false
, 0, NULL,
40
"Use an arrow '->' instead of highlighting in the index"
41
},
42
{
"arrow_string"
,
DT_STRING
|
D_NOT_EMPTY
,
IP
"->"
, 0, NULL,
43
"Use a custom string for arrow_cursor"
44
},
45
{
"menu_context"
,
DT_NUMBER
|
D_INTEGER_NOT_NEGATIVE
, 0, 0, NULL,
46
"Number of lines of overlap when changing pages in the index"
47
},
48
{
"menu_move_off"
,
DT_BOOL
,
true
, 0, NULL,
49
"Allow the last menu item to move off the bottom of the screen"
50
},
51
{
"menu_scroll"
,
DT_BOOL
,
false
, 0, NULL,
52
"Scroll the menu/index by one line, rather than a page"
53
},
54
{ NULL },
55
// clang-format on
56
};
lib.h
Convenience wrapper for the config headers.
IP
#define IP
Definition
set.h:55
MenuVars
struct ConfigDef MenuVars[]
Config definitions for the Menu library.
Definition
config.c:37
ConfigDef
Definition
set.h:65
DT_NUMBER
@ DT_NUMBER
a number
Definition
types.h:38
DT_BOOL
@ DT_BOOL
boolean option
Definition
types.h:32
DT_STRING
@ DT_STRING
a string
Definition
types.h:44
D_NOT_EMPTY
#define D_NOT_EMPTY
Empty strings are not allowed.
Definition
types.h:80
D_INTEGER_NOT_NEGATIVE
#define D_INTEGER_NOT_NEGATIVE
Negative numbers are not allowed.
Definition
types.h:101