1
mirror of https://github.com/hashcat/hashcat synced 2025-03-30 04:09:05 +02:00

Terminal: Send clear line code to the same output stream as the next message following

This commit is contained in:
jsteube 2017-12-04 14:51:42 +01:00
parent 4414b520c8
commit f817652bbb
2 changed files with 4 additions and 3 deletions

@ -40,6 +40,7 @@
- Hash Parser: Fixed our use of strtok_r () calls
- Self Test: Skip self-test for mode 8900 user-configurable scrypt settings are incompatible to fixed settings in the self-test hash
- Self Test: Skip self-test for mode 15700 because settings are too high and create a too long startup time
- Terminal: Send clear line code to the same output stream as the next message following
* changes v4.0.0 -> v4.0.1:

@ -40,7 +40,7 @@ static void main_log_clear_line (MAYBE_UNUSED const int prev_len, MAYBE_UNUSED F
#else
printf ("\033[2K\r");
fputs ("\033[2K\r", fp);
#endif
}
@ -97,7 +97,7 @@ static void main_log (hashcat_ctx_t *hashcat_ctx, FILE *fp, const int loglevel)
#else
switch (loglevel)
{
case LOGLEVEL_INFO: break;
case LOGLEVEL_INFO: break;
case LOGLEVEL_WARNING: hc_fwrite ("\033[33m", 5, 1, fp); break;
case LOGLEVEL_ERROR: hc_fwrite ("\033[31m", 5, 1, fp); break;
case LOGLEVEL_ADVICE: hc_fwrite ("\033[33m", 5, 1, fp); break;
@ -121,7 +121,7 @@ static void main_log (hashcat_ctx_t *hashcat_ctx, FILE *fp, const int loglevel)
#else
switch (loglevel)
{
case LOGLEVEL_INFO: break;
case LOGLEVEL_INFO: break;
case LOGLEVEL_WARNING: hc_fwrite ("\033[0m", 4, 1, fp); break;
case LOGLEVEL_ERROR: hc_fwrite ("\033[0m", 4, 1, fp); break;
case LOGLEVEL_ADVICE: hc_fwrite ("\033[0m", 4, 1, fp); break;