Go to the source code of this file.
Classes | |
union | KeyValue_t |
struct | ElKey_t |
Defines | |
#define | XK_CMD 0 |
#define | XK_STR 1 |
#define | XK_NOD 2 |
#define | XK_EXE 3 |
Typedefs | |
typedef KeyNode_t | KeyNode_t |
Functions | |
el_protected int | key_init (EditLine_t *) |
el_protected void | key_end (EditLine_t *) |
el_protected KeyValue_t * | key_map_cmd (EditLine_t *, int) |
el_protected KeyValue_t * | key_map_str (EditLine_t *, char *) |
el_protected void | key_reset (EditLine_t *) |
el_protected int | key_get (EditLine_t *, char *, KeyValue_t *) |
el_protected void | key_add (EditLine_t *, const char *, KeyValue_t *, int) |
el_protected void | key_clear (EditLine_t *, ElAction_t *, char *) |
el_protected int | key_delete (EditLine_t *, char *) |
el_protected void | key_print (EditLine_t *, const char *) |
el_protected void | key_kprint (EditLine_t *, const char *, KeyValue_t *, int) |
el_protected char * | key__decode_str (char *, char *, const char *) |
#define XK_CMD 0 |
Definition at line 65 of file key.h.
Referenced by key_add(), key_kprint(), map_bind(), map_init_emacs(), node__put(), node_trav(), read_getcmd(), term_bind_arrow(), and term_init_arrow().
#define XK_EXE 3 |
#define XK_NOD 2 |
Definition at line 67 of file key.h.
Referenced by node__get(), node__put(), term_bind_arrow(), term_clear_arrow(), and term_print_arrow().
#define XK_STR 1 |
Definition at line 66 of file key.h.
Referenced by key_kprint(), map_bind(), node__put(), node_trav(), and read_getcmd().
el_protected char* key__decode_str | ( | char * | , | |
char * | , | |||
const char * | ||||
) |
Definition at line 668 of file key.cxx.
Referenced by key_kprint(), map_print_key(), map_print_some_keys(), and term_telltc().
el_protected void key_add | ( | EditLine_t * | , | |
const char * | , | |||
KeyValue_t * | , | |||
int | ||||
) |
Definition at line 184 of file key.cxx.
References ED_SEQUENCE_LEAD_IN, EditLine_t::fErrFile, EditLine_t::fKey, ElKey_t::fMap, fprintf(), node__get(), node__try(), NULL, val, void, and XK_CMD.
Referenced by map_bind(), map_init_emacs(), term_bind_arrow(), and term_reset_arrow().
el_protected void key_clear | ( | EditLine_t * | , | |
ElAction_t * | , | |||
char * | ||||
) |
Definition at line 213 of file key.cxx.
References ED_SEQUENCE_LEAD_IN, ElMap_t::fAlt, ElMap_t::fKey, EditLine_t::fMap, key_delete(), and void.
Referenced by map_bind(), term_bind_arrow(), and tty_bind_char().
el_protected int key_delete | ( | EditLine_t * | , | |
char * | ||||
) |
Definition at line 229 of file key.cxx.
References EditLine_t::fErrFile, EditLine_t::fKey, ElKey_t::fMap, fprintf(), node__delete(), NULL, and void.
Referenced by key_clear(), and map_bind().
el_protected void key_end | ( | EditLine_t * | ) |
Definition at line 122 of file key.cxx.
References el_free, ElKey_t::fBuf, EditLine_t::fKey, ElKey_t::fMap, and NULL.
Referenced by el_end().
el_protected int key_get | ( | EditLine_t * | , | |
char * | , | |||
KeyValue_t * | ||||
) |
Definition at line 172 of file key.cxx.
References EditLine_t::fKey, ElKey_t::fMap, node_trav(), and val.
Referenced by read_getcmd().
el_protected int key_init | ( | EditLine_t * | ) |
Definition at line 106 of file key.cxx.
References el_malloc, ElKey_t::fBuf, EditLine_t::fKey, ElKey_t::fMap, KEY_BUFSIZ, key_reset(), and NULL.
Referenced by el_init().
el_protected void key_kprint | ( | EditLine_t * | , | |
const char * | , | |||
KeyValue_t * | , | |||
int | ||||
) |
Definition at line 586 of file key.cxx.
References EL_ABORT, EL_BUFSIZ, EditLine_t::fErrFile, ElMap_t::fHelp, EditLine_t::fMap, EditLine_t::fOutFile, fp, fprintf(), key__decode_str(), NULL, val, void, XK_CMD, and XK_STR.
Referenced by node_enum(), node_lookup(), and term_print_arrow().
el_protected KeyValue_t* key_map_cmd | ( | EditLine_t * | , | |
int | ||||
) |
Definition at line 134 of file key.cxx.
References KeyValue_t::fCmd, EditLine_t::fKey, and ElKey_t::fVal.
Referenced by map_bind(), and map_init_emacs().
el_protected KeyValue_t* key_map_str | ( | EditLine_t * | , | |
char * | ||||
) |
Definition at line 144 of file key.cxx.
References EditLine_t::fKey, KeyValue_t::fStr, and ElKey_t::fVal.
Referenced by map_bind().
el_protected void key_print | ( | EditLine_t * | , | |
const char * | ||||
) |
Definition at line 250 of file key.cxx.
References ElKey_t::fBuf, EditLine_t::fErrFile, EditLine_t::fKey, ElKey_t::fMap, fprintf(), node_lookup(), NULL, and void.
Referenced by map_print_key().
el_protected void key_reset | ( | EditLine_t * | ) |
Definition at line 156 of file key.cxx.
References EditLine_t::fKey, ElKey_t::fMap, node__put(), and NULL.
Referenced by key_init(), map_init_emacs(), and map_init_vi().