projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d62aaa7
)
edit: Clear edit line on deinit when using readline
author
Jouni Malinen
<j@w1.fi>
Sun, 5 Aug 2012 18:45:43 +0000
(21:45 +0300)
committer
Jouni Malinen
<j@w1.fi>
Sun, 5 Aug 2012 18:45:43 +0000
(21:45 +0300)
Signed-hostap: Jouni Malinen <j@w1.fi>
src/utils/edit_readline.c
patch
|
blob
|
history
diff --git
a/src/utils/edit_readline.c
b/src/utils/edit_readline.c
index
9a6f642
..
add26fa
100644
(file)
--- a/
src/utils/edit_readline.c
+++ b/
src/utils/edit_readline.c
@@
-147,6
+147,9
@@
int edit_init(void (*cmd_cb)(void *ctx, char *cmd),
void edit_deinit(const char *history_file,
int (*filter_cb)(void *ctx, const char *cmd))
{
+ rl_set_prompt("");
+ rl_replace_line("", 0);
+ rl_redisplay();
rl_callback_handler_remove();
readline_free_completions();