NeoMutt  2025-12-11-911-gd8d604
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
extended.h File Reference

Set up the extended keys. More...

#include "config.h"
+ Include dependency graph for extended.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

const char * ext_key_find (const char *key)
 Find the curses name for a key.
 
static void ext_keys_init (struct Mapping *key_names)
 

Detailed Description

Set up the extended keys.

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 extended.h.

Function Documentation

◆ ext_key_find()

const char * ext_key_find ( const char * key)

Find the curses name for a key.

Parameters
keyKey name
Return values
ptrCurses name

Look up NeoMutt's name for a key and find the ncurses extended name for it.

Note
This returns a static string.

Definition at line 95 of file extended.c.

96{
97 for (int i = 0; ExtKeys[i].name; i++)
98 {
99 if (strcasecmp(key, ExtKeys[i].name) == 0)
100 return ExtKeys[i].sym;
101 }
102 return 0;
103}
static const struct Extkey ExtKeys[]
Mapping between NeoMutt and Curses key names.
Definition extended.c:50
+ Here is the caller graph for this function:

◆ ext_keys_init()

static void ext_keys_init ( struct Mapping * key_names)
inlinestatic

Definition at line 35 of file extended.h.

35{}