mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-22 14:48:12 +00:00
Usage Screen: On windows console, wait for any keypress if usage_mini_print() is used
This commit is contained in:
parent
1458f8fa8d
commit
5389adff81
@ -1,5 +1,11 @@
|
||||
* changes v6.2.5 -> v6.2.x
|
||||
|
||||
##
|
||||
## Technical
|
||||
##
|
||||
|
||||
- Usage Screen: On windows console, wait for any keypress if usage_mini_print() is used
|
||||
|
||||
* changes v6.2.4 -> v6.2.5
|
||||
|
||||
##
|
||||
|
@ -9,6 +9,11 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#if defined (_WIN)
|
||||
// for getch()
|
||||
#include <conio.h>
|
||||
#endif
|
||||
|
||||
typedef struct usage_sort
|
||||
{
|
||||
u32 hash_mode;
|
||||
|
@ -283,6 +283,13 @@ void usage_mini_print (const char *progname)
|
||||
|
||||
fwrite (EOL, strlen (EOL), 1, stdout);
|
||||
}
|
||||
|
||||
#if defined (_WIN)
|
||||
printf ("\n");
|
||||
printf ("Press any key to exit\n");
|
||||
|
||||
getch();
|
||||
#endif
|
||||
}
|
||||
|
||||
void usage_big_print (hashcat_ctx_t *hashcat_ctx)
|
||||
|
Loading…
Reference in New Issue
Block a user