mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-25 09:28:20 +00:00
77daf05dd0
On 32-bit MinGW, clang was throwing errors about this. 64-bit MinGW and regular MSYS does not throw warnings after the change.
59 lines
1.7 KiB
C
59 lines
1.7 KiB
C
/**
|
|
* Author......: See docs/credits.txt
|
|
* License.....: MIT
|
|
*/
|
|
|
|
#ifndef _TERMINAL_H
|
|
#define _TERMINAL_H
|
|
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <sys/time.h>
|
|
#include <sys/types.h>
|
|
#include <unistd.h>
|
|
|
|
#if defined (_WIN)
|
|
#include <windows.h>
|
|
#else
|
|
#include <termios.h>
|
|
#if defined (__APPLE__)
|
|
#include <sys/ioctl.h>
|
|
#endif // __APPLE__
|
|
#endif // _WIN
|
|
|
|
void welcome_screen (hashcat_ctx_t *hashcat_ctx, const char *version_tag);
|
|
void goodbye_screen (hashcat_ctx_t *hashcat_ctx, const time_t proc_start, const time_t proc_stop);
|
|
|
|
int setup_console (void);
|
|
|
|
void send_prompt (hashcat_ctx_t *hashcat_ctx);
|
|
void clear_prompt (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
HC_API_CALL void *thread_keypress (void *p);
|
|
|
|
#if defined (_WIN)
|
|
void SetConsoleWindowSize (const int x);
|
|
#endif
|
|
|
|
int tty_break(void);
|
|
int tty_getchar(void);
|
|
int tty_fix(void);
|
|
|
|
void compress_terminal_line_length (char *out_buf, const size_t keep_from_beginning, const size_t keep_from_end);
|
|
|
|
void example_hashes (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
void opencl_info (hashcat_ctx_t *hashcat_ctx);
|
|
void opencl_info_compact (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
void status_progress_machine_readable (hashcat_ctx_t *hashcat_ctx);
|
|
void status_progress (hashcat_ctx_t *hashcat_ctx);
|
|
void status_speed_machine_readable (hashcat_ctx_t *hashcat_ctx);
|
|
void status_speed (hashcat_ctx_t *hashcat_ctx);
|
|
void status_display_machine_readable (hashcat_ctx_t *hashcat_ctx);
|
|
void status_display (hashcat_ctx_t *hashcat_ctx);
|
|
void status_benchmark_machine_readable (hashcat_ctx_t *hashcat_ctx);
|
|
void status_benchmark (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
#endif // _TERMINAL_H
|