We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ee4d7d commit 4e41223Copy full SHA for 4e41223
src/modules/colors/colors.c
@@ -55,7 +55,11 @@ void ffPrintColors(FFColorsOptions* options)
55
#ifdef __linux__
56
// Required by Linux Console for light background to work
57
if (options->symbol == FF_COLORS_SYMBOL_BACKGROUND)
58
- ffStrbufAppendS(&result, "\e[5m");
+ {
59
+ const char* term = getenv("TERM");
60
+ if (term && ffStrEquals(term, "linux"))
61
+ ffStrbufAppendS(&result, "\e[5m");
62
+ }
63
#endif
64
65
// 9%d: Set the foreground to the bright color
0 commit comments