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:
566aef6
)
edit: Clear edit line on deinit
author
Jouni Malinen
<j@w1.fi>
Sun, 21 Nov 2010 10:07:29 +0000
(12:07 +0200)
committer
Jouni Malinen
<j@w1.fi>
Sun, 21 Nov 2010 10:07:29 +0000
(12:07 +0200)
src/utils/edit.c
patch
|
blob
|
history
diff --git
a/src/utils/edit.c
b/src/utils/edit.c
index
ad90927
..
8dcfb68
100644
(file)
--- a/
src/utils/edit.c
+++ b/
src/utils/edit.c
@@
-1137,6
+1137,9
@@
void edit_deinit(const char *history_file,
dl_list_del(&h->list);
os_free(h);
}
+ edit_clear_line();
+ putchar('\r');
+ fflush(stdout);
eloop_unregister_read_sock(STDIN_FILENO);
tcsetattr(STDIN_FILENO, TCSANOW, &prevt);
}