edit: Clear edit line on deinit when using readline
Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
d62aaa7de1
commit
5ff72bdcab
1 changed files with 3 additions and 0 deletions
|
@ -147,6 +147,9 @@ int edit_init(void (*cmd_cb)(void *ctx, char *cmd),
|
||||||
void edit_deinit(const char *history_file,
|
void edit_deinit(const char *history_file,
|
||||||
int (*filter_cb)(void *ctx, const char *cmd))
|
int (*filter_cb)(void *ctx, const char *cmd))
|
||||||
{
|
{
|
||||||
|
rl_set_prompt("");
|
||||||
|
rl_replace_line("", 0);
|
||||||
|
rl_redisplay();
|
||||||
rl_callback_handler_remove();
|
rl_callback_handler_remove();
|
||||||
readline_free_completions();
|
readline_free_completions();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue