1
mirror of https://github.com/hashcat/hashcat synced 2024-11-24 14:27:14 +01:00
hashcat/include/terminal.h

45 lines
879 B
C
Raw Normal View History

/**
* Author......: See docs/credits.txt
* License.....: MIT
*/
#ifndef _TERMINAL_H
#define _TERMINAL_H
#include <stdio.h>
2016-09-11 10:39:19 +02: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 22:25:54 +02:00
#include <sys/ioctl.h>
#endif // __APPLE__
#endif // _POSIX
#if defined (_WIN)
#include <windows.h>
#endif // _WIN
2016-10-06 20:57:29 +02:00
void welcome_screen (hashcat_ctx_t *hashcat_ctx, const time_t proc_start, const char *version_tag);
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
int setup_console (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx);
2016-09-28 23:40:16 +02:00
2016-09-11 10:39:19 +02:00
void send_prompt ();
void clear_prompt ();
2016-09-15 04:21:41 +02:00
void *thread_keypress (void *p);
#if defined (_WIN)
void SetConsoleWindowSize (const int x);
#endif
int tty_break();
int tty_getchar();
int tty_fix();
#endif // _TERMINAL_H