NeoMutt  2024-11-14-138-ge5ca67
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
config.c File Reference

Config used by libmenu. More...

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

Go to the source code of this file.

Functions

bool config_init_menu (struct ConfigSet *cs)
 Register menu config variables - Implements module_init_config_t -.
 

Variables

static struct ConfigDef MenuVars []
 Config definitions for the Menu library.
 

Detailed Description

Config used by libmenu.

Authors
  • 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 http://www.gnu.org/licenses/.

Definition in file config.c.

Variable Documentation

◆ MenuVars

struct ConfigDef MenuVars[]
static
Initial value:
= {
{ "arrow_cursor", DT_BOOL, false, 0, NULL,
"Use an arrow '->' instead of highlighting in the index"
},
{ "arrow_string", DT_STRING|D_NOT_EMPTY, IP "->", 0, NULL,
"Use a custom string for arrow_cursor"
},
{ "menu_context", DT_NUMBER|D_INTEGER_NOT_NEGATIVE, 0, 0, NULL,
"Number of lines of overlap when changing pages in the index"
},
{ "menu_move_off", DT_BOOL, true, 0, NULL,
"Allow the last menu item to move off the bottom of the screen"
},
{ "menu_scroll", DT_BOOL, false, 0, NULL,
"Scroll the menu/index by one line, rather than a page"
},
{ NULL },
}
#define IP
Definition: set.h:54
@ DT_NUMBER
a number
Definition: types.h:39
@ DT_BOOL
boolean option
Definition: types.h:32
@ DT_STRING
a string
Definition: types.h:45
#define D_NOT_EMPTY
Empty strings are not allowed.
Definition: types.h:80
#define D_INTEGER_NOT_NEGATIVE
Negative numbers are not allowed.
Definition: types.h:101

Config definitions for the Menu library.

Definition at line 37 of file config.c.