It controls whether we take input.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
}
#if ENABLE_FEATURE_USE_TERMIOS
-
static void reset_term(void)
{
if (!OPT_BATCH_MODE)
reset_term();
kill_myself_with_sig(sig);
}
-
#endif /* FEATURE_USE_TERMIOS */
/*
} else {
G.lines = 24; /* default */
col = 79;
-#if ENABLE_FEATURE_USE_TERMIOS
/* We output to stdout, we need size of stdout (not stdin)! */
get_terminal_width_height(STDOUT_FILENO, &col, &G.lines);
if (G.lines < 5 || col < 10) {
sleep(interval);
continue;
}
-#endif
if (col > LINE_BUF_SIZE - 2)
col = LINE_BUF_SIZE - 2;
}