2016-09-06 11:16:38 +00:00
|
|
|
/**
|
2016-09-06 20:25:54 +00:00
|
|
|
* Authors.....: Jens Steube <jens.steube@gmail.com>
|
|
|
|
* Gabriele Gristina <matrix@hashcat.net>
|
|
|
|
*
|
2016-09-06 11:16:38 +00:00
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
2016-09-06 16:44:05 +00:00
|
|
|
#ifndef _TERMINAL_H
|
|
|
|
#define _TERMINAL_H
|
2016-09-06 11:16:38 +00:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <sys/time.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
|
|
|
|
#ifdef _POSIX
|
|
|
|
#include <termios.h>
|
2016-09-06 20:25:54 +00:00
|
|
|
#ifdef __APPLE__
|
|
|
|
#include <sys/ioctl.h>
|
|
|
|
#endif // __APPLE__
|
2016-09-06 11:16:38 +00:00
|
|
|
#endif // _POSIX
|
|
|
|
|
|
|
|
#ifdef _WIN
|
|
|
|
#include <windows.h>
|
|
|
|
#endif // _WIN
|
|
|
|
|
|
|
|
int tty_break();
|
|
|
|
int tty_getchar();
|
|
|
|
int tty_fix();
|
2016-09-06 16:44:05 +00:00
|
|
|
|
|
|
|
#endif // _TERMINAL_H
|