You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
/**
|
|
|
|
* Authors.....: Jens Steube <jens.steube@gmail.com>
|
|
|
|
* Gabriele Gristina <matrix@hashcat.net>
|
|
|
|
*
|
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _TERMINAL_H
|
|
|
|
#define _TERMINAL_H
|
|
|
|
|
|
|
|
#include <stdio.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
|
|
|
|
|
|
|
|
#if defined (_WIN)
|
|
|
|
void SetConsoleWindowSize (const int x);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
int tty_break();
|
|
|
|
int tty_getchar();
|
|
|
|
int tty_fix();
|
|
|
|
|
|
|
|
#endif // _TERMINAL_H
|