Fix #6942 - show prompt when scr.fgets=true

This commit is contained in:
pancake 2017-03-08 23:36:45 +01:00
parent 8d986c2e2c
commit 024998890b

View File

@ -223,6 +223,8 @@ R_API int r_cons_fgets(char *buf, int len, int argc, const char **argv) {
if (cons->user_fgets) {
RETURN (cons->user_fgets (buf, len));
}
printf ("%s", cons->line->prompt);
fflush (stdout);
*buf = '\0';
fflush (cons->fdin);
if (color) {