Allow --stats-every and --noninteractive together. Fixes #3175

This commit is contained in:
dmiller 2026-06-16 14:07:15 +00:00
parent 538764bb6a
commit 4920925372

View file

@ -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);