#ifndef WIN32
sigset_t sig, old_sig;
struct termios ts;
int old_c_lflag;
tcflag_t old_c_lflag;
#else
/* Force stdin on windows. */
fd = 0;