mirror of
https://github.com/troglobit/editline.git
synced 2025-05-06 04:21:24 +08:00
Merge pull request #29 from abitmore/rl_set_getc_func
Add rl_set_getc_func()
This commit is contained in:
commit
0eb8f228f7
@ -114,6 +114,8 @@ extern void add_history (const char *line);
|
|||||||
extern int read_history (const char *filename);
|
extern int read_history (const char *filename);
|
||||||
extern int write_history (const char *filename);
|
extern int write_history (const char *filename);
|
||||||
|
|
||||||
|
extern rl_getc_func_t *rl_set_getc_func(rl_getc_func_t *func);
|
||||||
|
|
||||||
extern rl_completion_func_t *rl_attempted_completion_function;
|
extern rl_completion_func_t *rl_attempted_completion_function;
|
||||||
extern rl_complete_func_t *rl_set_complete_func (rl_complete_func_t *func);
|
extern rl_complete_func_t *rl_set_complete_func (rl_complete_func_t *func);
|
||||||
extern rl_list_possib_func_t *rl_set_list_possib_func (rl_list_possib_func_t *func);
|
extern rl_list_possib_func_t *rl_set_list_possib_func (rl_list_possib_func_t *func);
|
||||||
|
@ -1948,6 +1948,13 @@ el_status_t el_bind_key_in_metamap(int key, el_keymap_func_t function)
|
|||||||
return el_bind_key_in_map(key, function, MetaMap, NELEMS(MetaMap));
|
return el_bind_key_in_map(key, function, MetaMap, NELEMS(MetaMap));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rl_getc_func_t *rl_set_getc_func(rl_getc_func_t *func)
|
||||||
|
{
|
||||||
|
rl_getc_func_t *old = rl_getc_function;
|
||||||
|
rl_getc_function = func;
|
||||||
|
return old;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Local Variables:
|
* Local Variables:
|
||||||
* c-file-style: "k&r"
|
* c-file-style: "k&r"
|
||||||
|
Loading…
Reference in New Issue
Block a user