From ab7a10870d7347056d86eed03f6aca62aaf4d083 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Wed, 3 Feb 2021 13:46:19 +0000 Subject: winansi: change default 'skip ANSI emulation' setting Change the default 'skip ANSI emulation' setting which is used when the environment variable BB_SKIP_ANSI_EMULATION is unset. Previously it was 0 (always emulate) now it's 2 (detect whether or not the terminal supports ANSI escape sequences and behave accordingly). The default value is also now a build-time option. --- Config.in | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'Config.in') diff --git a/Config.in b/Config.in index 2d1e9bc8b..6d91ad248 100644 --- a/Config.in +++ b/Config.in @@ -455,6 +455,23 @@ config FEATURE_EURO requires the OEM code page to be 858. If the OEM code page of the console is 850 when BusyBox starts it's changed to 858. +config SKIP_ANSI_EMULATION_DEFAULT + int "Default setting for ANSI escape sequences" + default 2 + range 0 2 + depends on PLATFORM_MINGW32 + help + Control how ANSI escape sequences are handled. Possible values + are: + + 0 Always emulate escape sequences. + 1 Always emit escape sequences. + 2 Emit escape sequences if the terminal supports them, otherwise + emulate them. + + Setting the environment variable BB_SKIP_ANSI_EMULATION overrides + this default. + config FEATURE_EXTRA_FILE_DATA bool "Read additional file metadata (2.1 kb)" default y -- cgit v1.2.3-55-g6feb