edit: Clear edit line on deinit

This commit is contained in:
Jouni Malinen 2010-11-21 12:07:29 +02:00
parent 566aef60ab
commit e3acc8f1c8

View file

@ -1137,6 +1137,9 @@ void edit_deinit(const char *history_file,
dl_list_del(&h->list); dl_list_del(&h->list);
os_free(h); os_free(h);
} }
edit_clear_line();
putchar('\r');
fflush(stdout);
eloop_unregister_read_sock(STDIN_FILENO); eloop_unregister_read_sock(STDIN_FILENO);
tcsetattr(STDIN_FILENO, TCSANOW, &prevt); tcsetattr(STDIN_FILENO, TCSANOW, &prevt);
} }