mirror of
https://github.com/nmap/nmap.git
synced 2026-07-10 18:24:41 +00:00
Allow --stats-every and --noninteractive together. Fixes #3175
This commit is contained in:
parent
538764bb6a
commit
4920925372
1 changed files with 1 additions and 4 deletions
|
|
@ -257,10 +257,7 @@ bool keyWasPressed()
|
|||
static struct timeval stats_time = { 0 };
|
||||
int c;
|
||||
|
||||
if (o.noninteractive)
|
||||
return false;
|
||||
|
||||
if ((c = tty_getchar()) >= 0) {
|
||||
if (!o.noninteractive && (c = tty_getchar()) >= 0) {
|
||||
tty_flush(); /* flush input queue */
|
||||
|
||||
// printf("You pressed key '%c'!\n", c);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue