mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07: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) {
|
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_ "");
|
PrintAndLogEx(NORMAL, _CLEAR_ _TOP_ "");
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue