mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-16 04:49:24 +00:00
45 lines
821 B
C
45 lines
821 B
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 (_POSIX)
|
|
#include <termios.h>
|
|
#if defined (__APPLE__)
|
|
#include <sys/ioctl.h>
|
|
#endif // __APPLE__
|
|
#endif // _POSIX
|
|
|
|
#if defined (_WIN)
|
|
#include <windows.h>
|
|
#endif // _WIN
|
|
|
|
void welcome_screen (const user_options_t *user_options, const status_ctx_t *status_ctx);
|
|
void goodbye_screen (const user_options_t *user_options, const status_ctx_t *status_ctx);
|
|
|
|
int setup_console ();
|
|
|
|
void send_prompt ();
|
|
void clear_prompt ();
|
|
|
|
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
|