mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-28 01:53:11 +08:00
clear - now uses cliparser
This commit is contained in:
parent
4a29d49880
commit
5ab381b28a
1 changed files with 11 additions and 0 deletions
|
@ -274,6 +274,17 @@ static int CmdPref(const char *Cmd) {
|
|||
}
|
||||
|
||||
static int CmdClear(const char *Cmd) {
|
||||
CLIParserContext *ctx;
|
||||
CLIParserInit(&ctx, "clear",
|
||||
"Clear the Proxmark3 client terminal screen",
|
||||
"clear"
|
||||
);
|
||||
void *argtable[] = {
|
||||
arg_param_begin,
|
||||
arg_param_end
|
||||
};
|
||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||
CLIParserFree(ctx);
|
||||
PrintAndLogEx(NORMAL, _CLEAR_ _TOP_ "");
|
||||
return PM3_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue