1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-24 17:08:17 +00:00
hashcat/include/terminal.h

53 lines
1.2 KiB
C
Raw Normal View History

/**
* Author......: See docs/credits.txt
* License.....: MIT
*/
#ifndef _TERMINAL_H
#define _TERMINAL_H
#include <stdio.h>
2016-09-11 08:39:19 +00:00
#include <string.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#if defined (_POSIX)
#include <termios.h>
#if defined (__APPLE__)
2016-09-06 20:25:54 +00:00
#include <sys/ioctl.h>
#endif // __APPLE__
#endif // _POSIX
#if defined (_WIN)
#include <windows.h>
#endif // _WIN
void welcome_screen (hashcat_ctx_t *hashcat_ctx, const char *version_tag);
2016-10-06 18:57:29 +00:00
void goodbye_screen (hashcat_ctx_t *hashcat_ctx, const time_t proc_start, const time_t proc_stop);
2016-09-28 21:53:46 +00:00
2016-10-30 17:55:27 +00:00
int setup_console (void);
2016-09-28 21:40:16 +00:00
2016-10-30 17:55:27 +00:00
void send_prompt (void);
void clear_prompt (void);
2016-09-11 08:39:19 +00:00
2016-09-15 02:21:41 +00:00
void *thread_keypress (void *p);
#if defined (_WIN)
void SetConsoleWindowSize (const int x);
#endif
2016-10-30 17:55:27 +00:00
int tty_break(void);
int tty_getchar(void);
int tty_fix(void);
2016-10-25 14:40:06 +00:00
void opencl_info (hashcat_ctx_t *hashcat_ctx);
void opencl_info_compact (hashcat_ctx_t *hashcat_ctx);
2016-10-16 17:32:43 +00:00
void status_display_machine_readable (hashcat_ctx_t *hashcat_ctx);
void status_display (hashcat_ctx_t *hashcat_ctx);
void status_benchmark_automate (hashcat_ctx_t *hashcat_ctx);
void status_benchmark (hashcat_ctx_t *hashcat_ctx);
2016-10-25 14:40:06 +00:00
#endif // _TERMINAL_H