1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-01-22 21:51:07 +00:00

Fix clear line system

This commit is contained in:
jsteube 2016-10-13 19:52:27 +02:00
parent a3fa435f4f
commit 742b9c8404

View File

@ -33,10 +33,22 @@ static void main_log (hashcat_ctx_t *hashcat_ctx, FILE *fp)
if (prev_len) if (prev_len)
{ {
#if defined (_WIN)
fputc ('\r', fp);
for (int i = 0; i < prev_len; i++) for (int i = 0; i < prev_len; i++)
{ {
fputc ('\b', fp); fputc (' ', fp);
} }
fputc ('\r', fp);
#else
printf ("\033[2K\r");
#endif
} }
if (msg_newline == true) if (msg_newline == true)