This commit is contained in:
iceman1001 2022-03-13 04:45:32 +01:00
parent 15b8eb5935
commit 85f16fd471

View file

@ -3092,17 +3092,19 @@ static int CmdDiff(const char *Cmd) {
PrintAndLogEx(INFO, "inB null"); PrintAndLogEx(INFO, "inB null");
int hdr_sln = (width * 4) + 2; int hdr_sln = (width * 4) + 2;
PrintAndLogEx(INFO, "");
char hdr0[200] = " # | " _CYAN_("A"); char hdr0[200] = " # | " _CYAN_("a");
memset(hdr0 + strlen(hdr0), ' ', hdr_sln - 2); memset(hdr0 + strlen(hdr0), ' ', hdr_sln - 2);
strcat(hdr0 + strlen(hdr0), "| " _CYAN_("B")); strcat(hdr0 + strlen(hdr0), "| " _CYAN_("b"));
PrintAndLogEx(INFO, hdr0);
char hdr1[200] = "----+"; char hdr1[200] = "----+";
memset(hdr1 + strlen(hdr1), '-', hdr_sln); memset(hdr1 + strlen(hdr1), '-', hdr_sln);
memset(hdr1 + strlen(hdr1), '+', 1); memset(hdr1 + strlen(hdr1), '+', 1);
memset(hdr1 + strlen(hdr1), '-', hdr_sln); memset(hdr1 + strlen(hdr1), '-', hdr_sln);
PrintAndLogEx(INFO, "");
PrintAndLogEx(INFO, hdr1);
PrintAndLogEx(INFO, hdr0);
PrintAndLogEx(INFO, hdr1); PrintAndLogEx(INFO, hdr1);
// index 4bytes, spaces, bar, bytes with ansi codes // index 4bytes, spaces, bar, bytes with ansi codes