From eeb92b3c526706a5914d447cb402fb6ae210b5cb Mon Sep 17 00:00:00 2001 From: Stefan Rueger Date: Tue, 3 Jan 2023 16:31:50 +0000 Subject: [PATCH] Change libreadline version from which it's OK to run from a pipeline --- src/term.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/term.c b/src/term.c index 1d36b68d..d53d2df3 100644 --- a/src/term.c +++ b/src/term.c @@ -1432,7 +1432,7 @@ int terminal_mode(PROGRAMMER *pgm, struct avrpart *p) { // EditLine (NetBSD, MacOS) has issues with that, so only use it when // running interactively. // EditLine uses version 4.2 (0x0402). - if (isatty(fileno(stdin)) || (rl_readline_version >= 0x0500)) + if (isatty(fileno(stdin)) || rl_readline_version > 0x0500) return terminal_mode_interactive(pgm, p); #endif return terminal_mode_noninteractive(pgm, p);