mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
emoji -> alttext in logfiles
This commit is contained in:
parent
9f787faea6
commit
c769d661f1
1 changed files with 3 additions and 2 deletions
|
@ -331,10 +331,11 @@ static void fPrintAndLog(FILE *stream, const char *fmt, ...) {
|
|||
#endif
|
||||
|
||||
if ((g_printAndLog & PRINTANDLOG_LOG) && logging && logfile) {
|
||||
memcpy_filter_emoji(buffer3, buffer2, sizeof(buffer2), ALTTEXT);
|
||||
if (filter_ansi) { // already done
|
||||
fprintf(logfile, "%s\n", buffer2);
|
||||
fprintf(logfile, "%s\n", buffer3);
|
||||
} else {
|
||||
memcpy_filter_ansi(buffer, buffer2, sizeof(buffer2), true);
|
||||
memcpy_filter_ansi(buffer, buffer3, sizeof(buffer3), true);
|
||||
fprintf(logfile, "%s\n", buffer);
|
||||
}
|
||||
fflush(logfile);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue