Retain prompt when exiting using ^D (#1846)

This commit is contained in:
Dhruv Maroo 2021-10-16 18:55:42 +05:30 committed by GitHub
parent cb46249098
commit 897c5bf641
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1473,7 +1473,8 @@ RZ_API const char *rz_line_readline_cb(RzLineReadCallback cb, void *user) {
case 4: // ^D
if (!I.buffer.data[0]) { /* eof */
if (I.echo) {
printf("^D\n");
__print_prompt();
printf("\n");
}
rz_cons_set_raw(false);
rz_cons_break_pop();