=== modified file 'termkey-internal.h' --- termkey-internal.h 2019-02-17 17:41:37 +0000 +++ termkey-internal.h 2019-02-17 17:37:48 +0000 @@ -1,18 +1,10 @@ #ifndef GUARD_TERMKEY_INTERNAL_H_ #define GUARD_TERMKEY_INTERNAL_H_ -//#define HAVE_TERMIOS - -#ifdef _WIN32 -# undef HAVE_TERMIOS -#endif - #include "termkey.h" #include -#ifdef HAVE_TERMIOS -# include -#endif +#include #ifdef _MSC_VER #include @@ -54,10 +46,8 @@ size_t hightide; /* Position beyond buffstart at which peekkey() should next start * normally 0, but see also termkey_interpret_csi */ -#ifdef HAVE_TERMIOS struct termios restore_termios; char restore_termios_valid; -#endif TermKey_Terminfo_Getstr_Hook *ti_getstr_hook; void *ti_getstr_hook_data; === modified file 'termkey.c' --- termkey.c 2019-02-17 17:41:37 +0000 +++ termkey.c 2018-03-29 12:08:54 +0000 @@ -285,9 +285,7 @@ tk->buffsize = 256; /* bytes */ tk->hightide = 0; -#ifdef HAVE_TERMIOS tk->restore_termios_valid = 0; -#endif tk->ti_getstr_hook = NULL; tk->ti_getstr_hook_data = NULL; @@ -488,7 +486,6 @@ if(tk->is_started) return 1; -#ifdef HAVE_TERMIOS if(tk->fd != -1 && !(tk->flags & TERMKEY_FLAG_NOTERMIOS)) { struct termios termios; if(tcgetattr(tk->fd, &termios) == 0) { @@ -523,7 +520,6 @@ tcsetattr(tk->fd, TCSANOW, &termios); } } -#endif struct TermKeyDriverNode *p; for(p = tk->drivers; p; p = p->next) @@ -549,10 +545,8 @@ if(p->driver->stop_driver) (*p->driver->stop_driver)(tk, p->info); -#ifdef HAVE_TERMIOS if(tk->restore_termios_valid) tcsetattr(tk->fd, TCSANOW, &tk->restore_termios); -#endif tk->is_started = 0;