clear - now uses cliparser

This commit is contained in:
iceman1001 2021-03-23 17:06:53 +01:00
parent 4a29d49880
commit 5ab381b28a

View file

@ -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;
}