#include "compat.h"
#include "sys.h"
#include <stdlib.h>
#include "el.h"
Go to the source code of this file.
Defines | |
#define | N_KEYS 256 |
Functions | |
el_private void | map_print_key (EditLine_t *, ElAction_t *, char *) |
el_private void | map_print_some_keys (EditLine_t *, ElAction_t *, int, int) |
el_private void | map_print_all_keys (EditLine_t *) |
el_private void | map_init_nls (EditLine_t *) |
el_private void | map_init_meta (EditLine_t *) |
el_protected int | map_init (EditLine_t *el) |
el_protected void | map_end (EditLine_t *el) |
el_protected void | map_init_vi (EditLine_t *el) |
el_protected void | map_init_emacs (EditLine_t *el) |
el_protected int | map_set_editor (EditLine_t *el, char *editor) |
el_protected int | map_get_editor (EditLine_t *el, const char **editor) |
el_protected int | map_bind (EditLine_t *el, int argc, const char **argv) |
el_protected int | map_addfunc (EditLine_t *el, const char *name, const char *help, ElFunc_t func) |
Variables | |
el_private const ElAction_t | el_map_emacs [] |
el_private const ElAction_t | el_map_vi_insert [] |
el_private const ElAction_t | el_map_vi_command [] |
#define N_KEYS 256 |
Definition at line 55 of file map.cxx.
Referenced by map_init(), map_init_emacs(), map_init_vi(), and map_print_all_keys().
el_protected int map_addfunc | ( | EditLine_t * | el, | |
const char * | name, | |||
const char * | help, | |||
ElFunc_t | func | |||
) |
Definition at line 1452 of file map.cxx.
References el_realloc, ElBindings_t::fDescription, ElMap_t::fFunc, ElBindings_t::fFunc, ElMap_t::fHelp, EditLine_t::fMap, ElBindings_t::fName, ElMap_t::fNFunc, nf, NULL, and p.
el_protected int map_bind | ( | EditLine_t * | el, | |
int | argc, | |||
const char ** | argv | |||
) |
Definition at line 1267 of file map.cxx.
References ED_SEQUENCE_LEAD_IN, ED_UNASSIGNED, EL_ABORT, EL_BUFSIZ, ElMap_t::fAlt, ElBindings_t::fDescription, EditLine_t::fErrFile, ElMap_t::fKey, EditLine_t::fMap, ElBindings_t::fName, fprintf(), key_add(), key_clear(), key_delete(), key_map_cmd(), key_map_str(), map_init_emacs(), map_init_vi(), map_print_all_keys(), map_print_key(), NULL, out, p, parse__string(), parse_cmd(), term_clear_arrow(), term_print_arrow(), term_set_arrow(), void, XK_CMD, XK_EXE, and XK_STR.
Referenced by el_builtins_init(), el_get(), and el_set().
el_protected void map_end | ( | EditLine_t * | el | ) |
Definition at line 961 of file map.cxx.
References el_free, ElMap_t::fAlt, ElMap_t::fEmacs, ElMap_t::fFunc, ElMap_t::fHelp, ElMap_t::fKey, EditLine_t::fMap, ElMap_t::fVic, ElMap_t::fVii, and NULL.
Referenced by el_end().
el_protected int map_get_editor | ( | EditLine_t * | el, | |
const char ** | editor | |||
) |
Definition at line 1125 of file map.cxx.
References EditLine_t::fMap, ElMap_t::fType, MAP_EMACS, MAP_VI, and NULL.
Referenced by el_get().
el_protected int map_init | ( | EditLine_t * | el | ) |
Definition at line 899 of file map.cxx.
References EL_ABORT, el_malloc, el_map_emacs, el_map_vi_command, el_map_vi_insert, EL_NUM_FCNS, ElMap_t::fAlt, ElMap_t::fEmacs, ElMap_t::fFunc, ElMap_t::fHelp, ElMap_t::fKey, EditLine_t::fMap, ElMap_t::fNFunc, func__get(), ElMap_t::fVic, ElMap_t::fVii, help__get(), map_init_emacs(), map_init_vi(), N_KEYS, NULL, and void.
Referenced by el_init().
el_protected void map_init_emacs | ( | EditLine_t * | el | ) |
Definition at line 1074 of file map.cxx.
References buf, CONTROL, ED_UNASSIGNED, EM_EXCHANGE_MARK, ElMap_t::fAlt, ElMap_t::fCurrent, ElMap_t::fEmacs, ElMap_t::fKey, EditLine_t::fMap, ElMap_t::fType, key_add(), key_map_cmd(), key_reset(), MAP_EMACS, map_init_meta(), map_init_nls(), N_KEYS, term_bind_arrow(), tty_bind_char(), and XK_CMD.
Referenced by map_bind(), map_init(), and map_set_editor().
el_private void map_init_meta | ( | EditLine_t * | ) |
Definition at line 997 of file map.cxx.
References buf, EM_META_NEXT, ElMap_t::fAlt, ElMap_t::fKey, EditLine_t::fMap, ElMap_t::fType, i, and MAP_VI.
Referenced by map_init_emacs(), and map_init_vi().
el_private void map_init_nls | ( | EditLine_t * | ) |
Definition at line 980 of file map.cxx.
References ED_INSERT, ElMap_t::fKey, EditLine_t::fMap, and i.
Referenced by map_init_emacs(), and map_init_vi().
el_protected void map_init_vi | ( | EditLine_t * | el | ) |
Definition at line 1045 of file map.cxx.
References ElMap_t::fAlt, ElMap_t::fCurrent, ElMap_t::fKey, EditLine_t::fMap, ElMap_t::fType, ElMap_t::fVic, ElMap_t::fVii, key_reset(), map_init_meta(), map_init_nls(), MAP_VI, N_KEYS, term_bind_arrow(), and tty_bind_char().
Referenced by map_bind(), map_init(), and map_set_editor().
el_private void map_print_all_keys | ( | EditLine_t * | ) |
Definition at line 1229 of file map.cxx.
References ElMap_t::fKey, EditLine_t::fMap, EditLine_t::fOutFile, fprintf(), map_print_some_keys(), N_KEYS, and void.
Referenced by map_bind().
el_private void map_print_key | ( | EditLine_t * | , | |
ElAction_t * | , | |||
char * | ||||
) |
Definition at line 1146 of file map.cxx.
References EL_BUFSIZ, ElBindings_t::fFunc, ElMap_t::fHelp, EditLine_t::fMap, ElBindings_t::fName, EditLine_t::fOutFile, fprintf(), key__decode_str(), key_print(), NULL, and void.
Referenced by map_bind().
el_private void map_print_some_keys | ( | EditLine_t * | , | |
ElAction_t * | , | |||
int | , | |||
int | ||||
) |
Definition at line 1170 of file map.cxx.
References ED_UNASSIGNED, EL_ABORT, EL_BUFSIZ, ElMap_t::fAlt, EditLine_t::fErrFile, ElBindings_t::fFunc, ElMap_t::fHelp, ElMap_t::fKey, EditLine_t::fMap, ElBindings_t::fName, EditLine_t::fOutFile, fprintf(), key__decode_str(), NULL, STRQQ, and void.
Referenced by map_print_all_keys().
el_protected int map_set_editor | ( | EditLine_t * | el, | |
char * | editor | |||
) |
Definition at line 1107 of file map.cxx.
References map_init_emacs(), and map_init_vi().
Referenced by el_set().
el_private const ElAction_t el_map_emacs[] |
el_private const ElAction_t el_map_vi_command[] |
el_private const ElAction_t el_map_vi_insert[] |