Add LF before first pm3 dbg msg when there is a pending prompt

This commit is contained in:
Philippe Teuwen
2020-08-14 00:14:46 +02:00
parent 6d3c1d0223
commit b59becbeb6
4 changed files with 10 additions and 0 deletions

View File

@@ -349,6 +349,7 @@ check_script:
prompt_compose(prompt, sizeof(prompt), prompt_ctx, prompt_dev);
char prompt_filtered[PROXPROMPT_MAX_SIZE] = {0};
memcpy_filter_ansi(prompt_filtered, prompt, sizeof(prompt_filtered), !session.supports_colors);
g_pendingPrompt = true;
#ifdef HAVE_READLINE
cmd = readline(prompt_filtered);
#else
@@ -411,6 +412,7 @@ check_script:
}
#endif
// process cmd
g_pendingPrompt = false;
int ret = CommandReceived(cmd);
// exit or quit
if (ret == PM3_EFATAL)