mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-21 19:43:03 -05:00
edit: Clear edit line on deinit
This commit is contained in:
parent
566aef60ab
commit
e3acc8f1c8
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user