NeoMutt  2025-12-11-435-g4ac674
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 (void)
 

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 94 of file extended.c.

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

◆ ext_keys_init()

static void ext_keys_init ( void )
inlinestatic

Definition at line 33 of file extended.h.

33{}