Refactor completion handling and add FSF Readline callbacks

Still a bit raw, but the basic building blocks are there, waiting to be
cleaned up and released.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2018-09-10 18:34:27 +02:00
parent b2f1cfbbcc
commit 77d531f5b5
3 changed files with 210 additions and 5 deletions

View File

@@ -67,8 +67,6 @@ rl_hook_func_t *rl_event_hook;
rl_vintfunc_t *rl_prep_term_function = rl_prep_terminal;
rl_voidfunc_t *rl_deprep_term_function = rl_deprep_terminal;
char **(*rl_attempted_completion_function)(const char *token, int start, int end);
/*
** Globals.
*/