el_action_t
el_action_t cmd; /* command to redo */
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
el_action_t beep = CC_REFRESH, rval;
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
el_action_t lastcmd; /* Previous command */
el_action_t thiscmd; /* this command */
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t hist_get(EditLine *);
el->el_keymacro.val.cmd = (el_action_t) cmd;
keymacro_clear(EditLine *el, el_action_t *map, const wchar_t *in)
el_action_t cmd; /* If it is a command the # */
protected void keymacro_clear(EditLine *, el_action_t *, const wchar_t *);
el_action_t *key = el->el_map.key;
el_action_t *alt = el->el_map.alt;
const el_action_t *vii = el->el_map.vii;
const el_action_t *vic = el->el_map.vic;
el_action_t *key = el->el_map.key;
el_action_t *alt = el->el_map.alt;
const el_action_t *emacs = el->el_map.emacs;
map_print_key(EditLine *el, el_action_t *map, const wchar_t *in)
map_print_some_keys(EditLine *el, el_action_t *map, wint_t first, wint_t last)
el_action_t *map;
static const el_action_t el_map_vi_insert[] = {
static void map_print_key(EditLine *, el_action_t *, const wchar_t *);
static void map_print_some_keys(EditLine *, el_action_t *, wint_t, wint_t);
static const el_action_t el_map_emacs[] = {
static const el_action_t el_map_vi_command[] = {
if (sizeof(el_map_emacs) != N_KEYS * sizeof(el_action_t))
if (sizeof(el_map_vi_command) != N_KEYS * sizeof(el_action_t))
if (sizeof(el_map_vi_insert) != N_KEYS * sizeof(el_action_t))
el->el_map.alt = reallocarray(NULL, N_KEYS, sizeof(el_action_t));
el->el_map.key = reallocarray(NULL, N_KEYS, sizeof(el_action_t));
el_action_t *map = el->el_map.key;
el_action_t *map = el->el_map.key;
el_action_t *alt = el->el_map.alt;
typedef el_action_t (*el_func_t)(EditLine *, wint_t);
el_action_t *alt; /* The current alternate key map */
el_action_t *key; /* The current normal key map */
el_action_t *current; /* The keymap we are using */
const el_action_t *emacs; /* The default emacs key map */
const el_action_t *vic; /* The vi command mode key map */
const el_action_t *vii; /* The vi insert mode key map */
read_getcmd(EditLine *el, el_action_t *cmdnum, wchar_t *ch)
el_action_t cmd;
el_action_t cmdnum = 0;
static int read_getcmd(EditLine *, el_action_t *, wchar_t *);
protected el_action_t
el_action_t ret = CC_NORM;
(el_action_t) newdir;
protected el_action_t
el->el_state.lastcmd = (el_action_t) dir; /* avoid c_setpat */
protected el_action_t
protected el_action_t
el->el_state.lastcmd = (el_action_t) c; /* Hack to stop c_setpat */
protected el_action_t
protected el_action_t ce_inc_search(EditLine *, int);
protected el_action_t cv_search(EditLine *, int);
protected el_action_t ce_search_line(EditLine *, int);
protected el_action_t cv_repeat_srch(EditLine *, wint_t);
protected el_action_t cv_csearch(EditLine *, int, wint_t, int, int);
el_action_t *map;
const el_action_t *dmap;
el_action_t bind[3]; /* emacs, vi, and vi-cmd */
el_action_t *map, *alt;
const el_action_t *dmap, *dalt;
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
static el_action_t cv_action(EditLine *, wint_t);
protected el_action_t
static el_action_t cv_paste(EditLine *, wint_t);
protected el_action_t
protected el_action_t
static el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
el_action_t r;
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
protected el_action_t
el_action_t rval;
static el_action_t
protected el_action_t
el_action_t
el_action_t cmdnum;
if ((el.el_map.key = calloc(N_KEYS, sizeof(el_action_t))) == NULL)