map.h File Reference

Go to the source code of this file.

Classes

struct  ElBindings_t
struct  ElMap_t

Defines

#define MAP_EMACS   0
#define MAP_VI   1

Functions

el_protected int map_bind (EditLine_t *, int, const char **)
el_protected int map_init (EditLine_t *)
el_protected void map_end (EditLine_t *)
el_protected void map_init_vi (EditLine_t *)
el_protected void map_init_emacs (EditLine_t *)
el_protected int map_set_editor (EditLine_t *, char *)
el_protected int map_get_editor (EditLine_t *, const char **)
el_protected int map_addfunc (EditLine_t *, const char *, const char *, ElFunc_t)


Define Documentation

#define MAP_EMACS   0

Definition at line 76 of file map.h.

Referenced by map_get_editor(), and map_init_emacs().

#define MAP_VI   1

Definition at line 77 of file map.h.

Referenced by ed_delete_next_char(), ed_move_to_beg(), ed_move_to_end(), ed_newline(), ed_next_char(), ed_prev_char(), ed_prev_word(), em_next_word(), hist_get(), map_get_editor(), map_init_meta(), map_init_vi(), term_bind_arrow(), term_reset_arrow(), and tty_bind_char().


Function Documentation

el_protected int map_addfunc ( EditLine_t ,
const char *  ,
const char *  ,
ElFunc_t   
)

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.

Referenced by el_get(), and el_set().

el_protected int map_bind ( EditLine_t ,
int  ,
const char **   
)

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  ) 

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 ,
const char **   
)

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  ) 

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  ) 

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_protected void map_init_vi ( EditLine_t  ) 

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_protected int map_set_editor ( EditLine_t ,
char *   
)

Definition at line 1107 of file map.cxx.

References map_init_emacs(), and map_init_vi().

Referenced by el_set().


Generated on Tue Jul 5 15:57:25 2011 for ROOT_528-00b_version by  doxygen 1.5.1