2016-09-06 13:16:38 +02:00
|
|
|
/**
|
2016-09-11 22:20:15 +02:00
|
|
|
* Author......: See docs/credits.txt
|
2016-09-06 13:16:38 +02:00
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
2016-09-06 18:44:05 +02:00
|
|
|
#ifndef _TERMINAL_H
|
|
|
|
#define _TERMINAL_H
|
2016-09-06 13:16:38 +02:00
|
|
|
|
|
|
|
#include <stdio.h>
|
2016-09-11 10:39:19 +02:00
|
|
|
#include <string.h>
|
2016-09-06 13:16:38 +02:00
|
|
|
#include <sys/time.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
|
2017-02-24 00:55:06 +01:00
|
|
|
#if defined (_WIN)
|
|
|
|
#include <windows.h>
|
|
|
|
#else
|
2016-09-06 13:16:38 +02:00
|
|
|
#include <termios.h>
|
2016-09-07 22:29:57 +02:00
|
|
|
#if defined (__APPLE__)
|
2016-09-06 22:25:54 +02:00
|
|
|
#include <sys/ioctl.h>
|
|
|
|
#endif // __APPLE__
|
2016-09-06 13:16:38 +02:00
|
|
|
#endif // _WIN
|
|
|
|
|
2016-10-23 17:31:22 +02:00
|
|
|
void welcome_screen (hashcat_ctx_t *hashcat_ctx, const char *version_tag);
|
2017-12-10 01:40:45 +01:00
|
|
|
void goodbye_screen (hashcat_ctx_t *hashcat_ctx, const time_t proc_start, const time_t proc_stop);
|
2016-09-28 23:53:46 +02:00
|
|
|
|
2016-10-30 18:55:27 +01:00
|
|
|
int setup_console (void);
|
2016-09-28 23:40:16 +02:00
|
|
|
|
2017-11-26 10:50:22 +01:00
|
|
|
void send_prompt (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
void clear_prompt (hashcat_ctx_t *hashcat_ctx);
|
2016-09-11 10:39:19 +02:00
|
|
|
|
2016-09-15 04:21:41 +02:00
|
|
|
void *thread_keypress (void *p);
|
|
|
|
|
2016-09-08 09:21:25 +02:00
|
|
|
#if defined (_WIN)
|
|
|
|
void SetConsoleWindowSize (const int x);
|
|
|
|
#endif
|
|
|
|
|
2016-10-30 18:55:27 +01:00
|
|
|
int tty_break(void);
|
|
|
|
int tty_getchar(void);
|
|
|
|
int tty_fix(void);
|
2016-09-06 18:44:05 +02:00
|
|
|
|
2017-03-24 10:45:40 +01:00
|
|
|
void compress_terminal_line_length (char *out_buf, const size_t keep_from_beginning, const size_t keep_from_end);
|
|
|
|
|
2017-08-22 11:09:46 +02:00
|
|
|
void example_hashes (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
|
2016-12-09 23:44:43 +01:00
|
|
|
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);
|
2016-10-25 16:40:06 +02:00
|
|
|
|
|
|
|
#endif // _TERMINAL_H
|