From fcb61f38cd937242882dd7ecdfbf3b4f68c18a8a Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Fri, 28 Jun 2024 08:47:41 +0100 Subject: win32: don't allow BB_TERMINAL_MODE=6 The BB_TERMINAL_MODE variable is only documented to work for values between 0 and 5. Due to an oversight it also accepted the value 6. Like other unsupported values 6 is now replaced with the default value configured at build time. --- win32/winansi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32/winansi.c b/win32/winansi.c index 3b7744b39..2b450aff0 100644 --- a/win32/winansi.c +++ b/win32/winansi.c @@ -115,7 +115,7 @@ int terminal_mode(int reset) CONFIG_TERMINAL_MODE; } - if (mode < 0 || mode > 6) + if (mode < 0 || mode > 5) mode = CONFIG_TERMINAL_MODE; if (is_console(STDOUT_FILENO)) { -- cgit v1.2.3-55-g6feb