Custom: don't print ANSI escape code in pipe mode

This commit is contained in:
李通洲 2024-05-05 20:02:22 +08:00
parent d2f3f47457
commit 479731f076
No known key found for this signature in database
GPG Key ID: 79D0E1C4B64C86A0

View File

@ -8,7 +8,8 @@ void ffPrintCustom(FFCustomOptions* options)
{
ffPrintLogoAndKey(FF_CUSTOM_MODULE_NAME, 0, &options->moduleArgs, FF_PRINT_TYPE_DEFAULT);
ffStrbufWriteTo(&options->moduleArgs.outputFormat, stdout);
puts(FASTFETCH_TEXT_MODIFIER_RESET);
if(!instance.config.display.pipe)
puts(FASTFETCH_TEXT_MODIFIER_RESET);
}
bool ffParseCustomCommandOptions(FFCustomOptions* options, const char* key, const char* value)