Skip to content

Commit

Permalink
Merge pull request #2610 from nvx/clear_prompt
Browse files Browse the repository at this point in the history
clear the prompt using ANSI "clear entire line" escape
  • Loading branch information
iceman1001 authored Nov 3, 2024
2 parents 3317175 + 690864e commit a594275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/proxmark3.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ static void prompt_compose(char *buf, size_t buflen, const char *promptctx, cons
if (no_newline) {
snprintf(buf, buflen - 1, PROXPROMPT_COMPOSE, promptdev, promptnet, promptctx);
} else {
snprintf(buf, buflen - 1, "\r \r" PROXPROMPT_COMPOSE, promptdev, promptnet, promptctx);
snprintf(buf, buflen - 1, "\33[2K\r" PROXPROMPT_COMPOSE, promptdev, promptnet, promptctx);
}
}

Expand Down

0 comments on commit a594275

Please sign in to comment.