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:
parent
a3fa435f4f
commit
742b9c8404
14
src/main.c
14
src/main.c
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user