From 492092537292e99c08e5f3de2957705335f94c1b Mon Sep 17 00:00:00 2001 From: dmiller Date: Tue, 16 Jun 2026 14:07:15 +0000 Subject: [PATCH] Allow --stats-every and --noninteractive together. Fixes #3175 --- nmap_tty.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/nmap_tty.cc b/nmap_tty.cc index a31cb757d..319dafd3c 100644 --- a/nmap_tty.cc +++ b/nmap_tty.cc @@ -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);